mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
fix ui lint errors
This commit is contained in:
@@ -10,7 +10,7 @@ export default ['Rest', 'Wait',
|
|||||||
'notification_template',
|
'notification_template',
|
||||||
'$scope', '$state', 'GetChoices', 'CreateSelect2', 'Empty',
|
'$scope', '$state', 'GetChoices', 'CreateSelect2', 'Empty',
|
||||||
'NotificationsTypeChange', 'ParseTypeChange', 'i18n',
|
'NotificationsTypeChange', 'ParseTypeChange', 'i18n',
|
||||||
'MessageUtils',
|
'MessageUtils', 'Alert',
|
||||||
function(
|
function(
|
||||||
Rest, Wait,
|
Rest, Wait,
|
||||||
NotificationsFormObject, ProcessErrors, GetBasePath,
|
NotificationsFormObject, ProcessErrors, GetBasePath,
|
||||||
@@ -18,7 +18,7 @@ export default ['Rest', 'Wait',
|
|||||||
notification_template,
|
notification_template,
|
||||||
$scope, $state, GetChoices, CreateSelect2, Empty,
|
$scope, $state, GetChoices, CreateSelect2, Empty,
|
||||||
NotificationsTypeChange, ParseTypeChange, i18n,
|
NotificationsTypeChange, ParseTypeChange, i18n,
|
||||||
MessageUtils
|
MessageUtils, Alert
|
||||||
) {
|
) {
|
||||||
var generator = GenerateForm,
|
var generator = GenerateForm,
|
||||||
id = notification_template.id,
|
id = notification_template.id,
|
||||||
|
|||||||
@@ -6,22 +6,22 @@ export default [function () {
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
started: {
|
started: {
|
||||||
message: $scope.started_message === defaultMessages.started.message
|
message: $scope.started_message === defaultMessages.started.message ?
|
||||||
? null : $scope.started_message,
|
null : $scope.started_message,
|
||||||
body: $scope.started_body === defaultMessages.started.body
|
body: $scope.started_body === defaultMessages.started.body ?
|
||||||
? null : $scope.started_body,
|
null : $scope.started_body,
|
||||||
},
|
},
|
||||||
success: {
|
success: {
|
||||||
message: $scope.success_message === defaultMessages.success.message
|
message: $scope.success_message === defaultMessages.success.message ?
|
||||||
? null : $scope.success_message,
|
null : $scope.success_message,
|
||||||
body: $scope.success_body === defaultMessages.success.body
|
body: $scope.success_body === defaultMessages.success.body ?
|
||||||
? null : $scope.success_body,
|
null : $scope.success_body,
|
||||||
},
|
},
|
||||||
error: {
|
error: {
|
||||||
message: $scope.error_message === defaultMessages.error.message
|
message: $scope.error_message === defaultMessages.error.message ?
|
||||||
? null : $scope.error_message,
|
null : $scope.error_message,
|
||||||
body: $scope.error_body === defaultMessages.error.body
|
body: $scope.error_body === defaultMessages.error.body ?
|
||||||
? null : $scope.error_body,
|
null : $scope.error_body,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -62,5 +62,5 @@ export default [function () {
|
|||||||
}
|
}
|
||||||
$scope.customize_messages = customized;
|
$scope.customize_messages = customized;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}]
|
}];
|
||||||
|
|||||||
Reference in New Issue
Block a user