diff --git a/components/benefit_sponsors/app/views/benefit_sponsors/inboxes/messages/destroy.js.erb b/components/benefit_sponsors/app/views/benefit_sponsors/inboxes/messages/destroy.js.erb index a055f6b0743..15644f890a3 100644 --- a/components/benefit_sponsors/app/views/benefit_sponsors/inboxes/messages/destroy.js.erb +++ b/components/benefit_sponsors/app/views/benefit_sponsors/inboxes/messages/destroy.js.erb @@ -3,6 +3,10 @@ $('#inbox-messages').show().html("<%= escape_javascript(render "benefit_sponsors var bs4 = document.documentElement.dataset.bs4 == "true"; if (bs4) { $("#messageDeleted").removeClass("hidden"); + + $("#close-delete-message").on('click', function() { + $("#messageDeleted").addClass("hidden"); + }); } else { <% if @inbox_provider != current_user.person%> location.reload(); diff --git a/components/benefit_sponsors/app/views/benefit_sponsors/shared/inboxes/_message_list.html.erb b/components/benefit_sponsors/app/views/benefit_sponsors/shared/inboxes/_message_list.html.erb index 7593201cc65..9c70c059b61 100644 --- a/components/benefit_sponsors/app/views/benefit_sponsors/shared/inboxes/_message_list.html.erb +++ b/components/benefit_sponsors/app/views/benefit_sponsors/shared/inboxes/_message_list.html.erb @@ -8,17 +8,11 @@ <%= l10n("broker_agencies.message_deleted") %>