Skip to content

Commit

Permalink
preserve default notification messages for users with read-only access
Browse files Browse the repository at this point in the history
  • Loading branch information
keithjgrant authored and Jim Ladd committed Jul 26, 2019
1 parent 7e1d447 commit d750353
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions awx/ui/client/src/notifications/edit/edit.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,7 @@ export default ['Rest', 'Wait',
Rest.setUrl(GetBasePath('notification_templates'));
Rest.options()
.then(({data}) => {
if (data.actions.POST) {
defaultMessages = data.actions.POST.messages.default;
} else {
const defaults = {
message: '<DEFAULT_MESSAGE>',
body: '<DEFAULT_BODY>',
};
defaultMessages = {
started: defaults,
success: defaults,
error: defaults,
};
}
defaultMessages = data.actions.GET.messages.default;
});

GetChoices({
Expand Down

0 comments on commit d750353

Please sign in to comment.