fix ui lint errors

This commit is contained in:
Keith Grant
2019-07-10 09:24:03 -07:00
committed by Jim Ladd
parent 885c5050a0
commit 191d18cec0
2 changed files with 16 additions and 16 deletions

View File

@@ -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,

View File

@@ -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;
} }
} };
}] }];