From 67632c928bacfd2c3a20c4651914c0950964c272 Mon Sep 17 00:00:00 2001 From: bencroker Date: Tue, 10 Sep 2024 09:51:52 +0200 Subject: [PATCH] Display success icons --- src/resources/js/ContactEdit.js | 2 +- src/resources/js/SendTest.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/js/ContactEdit.js b/src/resources/js/ContactEdit.js index 2c59e9f5..1d63b235 100644 --- a/src/resources/js/ContactEdit.js +++ b/src/resources/js/ContactEdit.js @@ -46,7 +46,7 @@ Campaign.ContactEdit = Garnish.Base.extend({ $row.find('.remove').removeClass('hidden'); } - Craft.cp.displayNotice(response.data.message); + Craft.cp.displaySuccess(response.data.message); }) .catch(({response}) => { if (response.data.message) { diff --git a/src/resources/js/SendTest.js b/src/resources/js/SendTest.js index 48041710..003ff244 100644 --- a/src/resources/js/SendTest.js +++ b/src/resources/js/SendTest.js @@ -40,7 +40,7 @@ Campaign.SendTest = Garnish.Base.extend({ Craft.sendActionRequest('POST', $('.send-test').data('action'), {data}) .then((response) => { - Craft.cp.displayNotice(response.data.message); + Craft.cp.displaySuccess(response.data.message); }) .catch(({response}) => { if (response.data.message) {