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:
commit
5e797a5ad5
@ -60,27 +60,27 @@ export default [function() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let isCustomized = false;
|
let isCustomized = false;
|
||||||
if (messages.started.message) {
|
if (messages.started && messages.started.message) {
|
||||||
isCustomized = true;
|
isCustomized = true;
|
||||||
$scope.started_message = messages.started.message;
|
$scope.started_message = messages.started.message;
|
||||||
}
|
}
|
||||||
if (messages.started.body) {
|
if (messages.started && messages.started.body) {
|
||||||
isCustomized = true;
|
isCustomized = true;
|
||||||
$scope.started_body = messages.started.body;
|
$scope.started_body = messages.started.body;
|
||||||
}
|
}
|
||||||
if (messages.success.message) {
|
if (messages.success && messages.success.message) {
|
||||||
isCustomized = true;
|
isCustomized = true;
|
||||||
$scope.success_message = messages.success.message;
|
$scope.success_message = messages.success.message;
|
||||||
}
|
}
|
||||||
if (messages.success.body) {
|
if (messages.success && messages.success.body) {
|
||||||
isCustomized = true;
|
isCustomized = true;
|
||||||
$scope.success_body = messages.success.body;
|
$scope.success_body = messages.success.body;
|
||||||
}
|
}
|
||||||
if (messages.error.message) {
|
if (messages.error && messages.error.message) {
|
||||||
isCustomized = true;
|
isCustomized = true;
|
||||||
$scope.error_message = messages.error.message;
|
$scope.error_message = messages.error.message;
|
||||||
}
|
}
|
||||||
if (messages.error.body) {
|
if (messages.error && messages.error.body) {
|
||||||
isCustomized = true;
|
isCustomized = true;
|
||||||
$scope.error_body = messages.error.body;
|
$scope.error_body = messages.error.body;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user