1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Merge pull request #3840 from ansible/fix-5029

fix a minor bug in the notification templates UI
This commit is contained in:
Ryan Petrello 2019-10-17 10:33:34 -04:00 committed by GitHub
commit 5e797a5ad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,27 +60,27 @@ export default [function() {
return;
}
let isCustomized = false;
if (messages.started.message) {
if (messages.started && messages.started.message) {
isCustomized = true;
$scope.started_message = messages.started.message;
}
if (messages.started.body) {
if (messages.started && messages.started.body) {
isCustomized = true;
$scope.started_body = messages.started.body;
}
if (messages.success.message) {
if (messages.success && messages.success.message) {
isCustomized = true;
$scope.success_message = messages.success.message;
}
if (messages.success.body) {
if (messages.success && messages.success.body) {
isCustomized = true;
$scope.success_body = messages.success.body;
}
if (messages.error.message) {
if (messages.error && messages.error.message) {
isCustomized = true;
$scope.error_message = messages.error.message;
}
if (messages.error.body) {
if (messages.error && messages.error.body) {
isCustomized = true;
$scope.error_body = messages.error.body;
}