From d7503537d2c65f607b084393344439db44c0969d Mon Sep 17 00:00:00 2001 From: Keith Grant Date: Mon, 15 Jul 2019 09:18:55 -0700 Subject: [PATCH] preserve default notification messages for users with read-only access --- .../src/notifications/edit/edit.controller.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/awx/ui/client/src/notifications/edit/edit.controller.js b/awx/ui/client/src/notifications/edit/edit.controller.js index 053c89ad3764..b451621c9c24 100644 --- a/awx/ui/client/src/notifications/edit/edit.controller.js +++ b/awx/ui/client/src/notifications/edit/edit.controller.js @@ -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: '', - body: '', - }; - defaultMessages = { - started: defaults, - success: defaults, - error: defaults, - }; - } + defaultMessages = data.actions.GET.messages.default; }); GetChoices({