Fix #4287: Hide Dmail notice persistently shown even after closing

This commit is contained in:
evazion
2020-02-05 20:41:55 -06:00
parent 960ed8934b
commit 094b9e6d07
2 changed files with 10 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
<div class="notice notice-info notice-large" id="dmail-notice" data-id="<%= latest_unread_dmail(CurrentUser.user) %>">
<div class="notice notice-info notice-large" id="dmail-notice" data-id="<%= latest_unread_dmail(CurrentUser.user).id %>">
<h2>You have <%= link_to "unread mail", dmails_path(search: { folder: "received" }) %>.</h2>
<div><%= link_to "Close this", "#", id: "hide-dmail-notice" %></div>
</div>