mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 10:11:05 -03:30
re-init message templates on notification type change
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user