diff --git a/awx/ui/client/src/notifications/edit/edit.controller.js b/awx/ui/client/src/notifications/edit/edit.controller.js index 30c449b63d..43e48a8fdf 100644 --- a/awx/ui/client/src/notifications/edit/edit.controller.js +++ b/awx/ui/client/src/notifications/edit/edit.controller.js @@ -10,7 +10,7 @@ export default ['Rest', 'Wait', 'notification_template', '$scope', '$state', 'GetChoices', 'CreateSelect2', 'Empty', 'NotificationsTypeChange', 'ParseTypeChange', 'i18n', - 'MessageUtils', + 'MessageUtils', 'Alert', function( Rest, Wait, NotificationsFormObject, ProcessErrors, GetBasePath, @@ -18,7 +18,7 @@ export default ['Rest', 'Wait', notification_template, $scope, $state, GetChoices, CreateSelect2, Empty, NotificationsTypeChange, ParseTypeChange, i18n, - MessageUtils + MessageUtils, Alert ) { var generator = GenerateForm, id = notification_template.id, diff --git a/awx/ui/client/src/notifications/shared/message-utils.service.js b/awx/ui/client/src/notifications/shared/message-utils.service.js index bd46a5b2c9..5705949e06 100644 --- a/awx/ui/client/src/notifications/shared/message-utils.service.js +++ b/awx/ui/client/src/notifications/shared/message-utils.service.js @@ -6,22 +6,22 @@ export default [function () { } return { started: { - message: $scope.started_message === defaultMessages.started.message - ? null : $scope.started_message, - body: $scope.started_body === defaultMessages.started.body - ? null : $scope.started_body, + message: $scope.started_message === defaultMessages.started.message ? + null : $scope.started_message, + body: $scope.started_body === defaultMessages.started.body ? + null : $scope.started_body, }, success: { - message: $scope.success_message === defaultMessages.success.message - ? null : $scope.success_message, - body: $scope.success_body === defaultMessages.success.body - ? null : $scope.success_body, + message: $scope.success_message === defaultMessages.success.message ? + null : $scope.success_message, + body: $scope.success_body === defaultMessages.success.body ? + null : $scope.success_body, }, error: { - message: $scope.error_message === defaultMessages.error.message - ? null : $scope.error_message, - body: $scope.error_body === defaultMessages.error.body - ? null : $scope.error_body, + message: $scope.error_message === defaultMessages.error.message ? + null : $scope.error_message, + body: $scope.error_body === defaultMessages.error.body ? + null : $scope.error_body, } }; }, @@ -62,5 +62,5 @@ export default [function () { } $scope.customize_messages = customized; } - } -}] + }; +}];