Skip to content

Commit

Permalink
Display success icons
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Sep 10, 2024
1 parent d8b83dd commit 67632c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/resources/js/ContactEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/js/SendTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 67632c9

Please sign in to comment.