mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03:30
re-init message templates on notification type change
This commit is contained in:
parent
03ebe44802
commit
885c5050a0
@ -164,6 +164,13 @@ export default ['Rest', 'Wait', 'NotificationsFormObject',
|
||||
});
|
||||
}
|
||||
});
|
||||
$scope.$watch('notification_type', (value) => {
|
||||
if (value) {
|
||||
$scope.$broadcast('reset-code-mirror', {
|
||||
customize_messages: $scope.customize_messages,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$scope.emailOptionsChange = function () {
|
||||
if ($scope.email_options === 'use_ssl') {
|
||||
|
||||
@ -258,6 +258,13 @@ export default ['Rest', 'Wait',
|
||||
});
|
||||
}
|
||||
});
|
||||
$scope.$watch('notification_type', (value) => {
|
||||
if (value) {
|
||||
$scope.$broadcast('reset-code-mirror', {
|
||||
customize_messages: $scope.customize_messages,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$scope.emailOptionsChange = function () {
|
||||
if ($scope.email_options === 'use_ssl') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user