1
0
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:
Keith Grant 2019-07-01 15:01:57 -07:00 committed by Jim Ladd
parent 03ebe44802
commit 885c5050a0
2 changed files with 14 additions and 0 deletions

View File

@ -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') {

View File

@ -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') {