mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02: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 () {
|
$scope.emailOptionsChange = function () {
|
||||||
if ($scope.email_options === 'use_ssl') {
|
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 () {
|
$scope.emailOptionsChange = function () {
|
||||||
if ($scope.email_options === 'use_ssl') {
|
if ($scope.email_options === 'use_ssl') {
|
||||||
|
|||||||
Reference in New Issue
Block a user