mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 06:51:10 +03:00
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…
Reference in New Issue
Block a user