Files
zulip/static/templates/unstar-messages-modal.handlebars
ruchit2801 9f7e90f68b left sidebar: Add an "unstar all messages" option.
In this commit, I've added a feature to unstar all the starred
messages.  This is useful, e.g., for folks who are using starred
messages to keep track of things they should come back when next at
their desktop.

The event flow is the standard one for a feature with a confirmation modal:

(1) User clicks on unstar all messages.

(2) We display a confirmation modal; if the user confirms, we send a
request to the backend to clear all starred messages.

(3) The events system sends that UI update back to us, removing the
stars from the UI.

Fixes #11401.
2019-03-07 20:52:00 -08:00

14 lines
855 B
Handlebars

<div id="unstar-messages-modal" class="modal new-style modal-bg hide fade" tabindex="-1" role="dialog" aria-labelledby="unstar_messages_modal_label" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="{{t 'Close' }}"><span aria-hidden="true">&times;</span></button>
<h3 id="unstar_messages_modal_label">{{t "Unstar all messages" }}</h3>
</div>
<div class="modal-body">
<p>{{t "Would you like to unstar all starred messages? This action cannot be undone." }}</p>
</div>
<div class="modal-footer">
<button type="button" class="button rounded" data-dismiss="modal">{{t "Cancel" }}</button>
<button type="button" class="button rounded btn-danger" id="do_unstar_messages_button">{{t "Unstar all messages" }}</button>
</div>
</div>