Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_edit: Rename class of cancel btn in stream-privacy modal.
sahil8394d3a2c10fb12
diff --git a/static/js/stream_edit.js b/static/js/stream_edit.jsindex b6952bbcb30..97881197826 100644--- a/static/js/stream_edit.js+++ b/static/js/stream_edit.js@@ -745,7 +745,7 @@ export function initialize() {$("#subscriptions_table").on("click", "#change-stream-privacy-button", change_stream_privacy);- $("#subscriptions_table").on("click", ".close-privacy-modal", (e) => {+ $("#subscriptions_table").on("click", ".close-modal-btn", (e) => {// Re-enable background mouse events when we close the modal// via the "x" in the corner. (The other modal-close code// paths call `overlays.close_modal`, rather than usingdiff --git a/static/templates/subscription_stream_privacy_modal.hbs b/static/templates/subscription_stream_privacy_modal.hbsindex 68eca73e664..fb383ad708f 100644--- a/static/templates/subscription_stream_privacy_modal.hbs+++ b/static/templates/subscription_stream_privacy_modal.hbs@@ -1,11 +1,11 @@<div id="stream_privacy_modal" class="modal modal-bg hide fade new-style" tabindex="-1" role="dialog" aria-labelledby="stream_privacy_modal_label" aria-hidden="true"><div class="modal-header">- <button type="button" class="close close-privacy-modal" data-dismiss="modal" aria-label="{{t 'Close' }}"><span aria-hidden="true">×</span></button>+ <button type="button" class="close close-modal-btn" data-dismiss="modal" aria-label="{{t 'Close' }}"><span aria-hidden="true">×</span></button><h3 id="stream_privacy_modal_label">{{t "Change stream permissions for #" }}{{ stream_name }}<span class="email"></span></h3></div>{{> stream_types }}<div class="modal-footer">- <button class="button rounded close-privacy-modal" data-dismiss="modal">{{t "Cancel" }}</button>+ <button class="button rounded close-modal-btn" data-dismiss="modal">{{t "Cancel" }}</button><button class="button rounded btn-danger" id="change-stream-privacy-button"tabindex="-1" data-stream-id="{{stream_id}}">{{t "Save changes"}}