Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stream_sidebar_actions: Rename toggle_home to toggle_stream_muted.

Anders Kaseorg2d8cab2cee23
diff --git a/static/js/stream_popover.js b/static/js/stream_popover.js
index 268c7ae7b54..af598a0f41d 100644
--- a/static/js/stream_popover.js
+++ b/static/js/stream_popover.js
@@ -399,7 +399,7 @@ exports.register_stream_handlers = function () {
});
});
// Mute/unmute
- $("body").on("click", ".toggle_home", (e) => {
+ $("body").on("click", ".toggle_stream_muted", (e) => {
const sub = stream_popover_sub(e);
exports.hide_stream_popover();
subs.set_muted(sub, !sub.is_muted);
diff --git a/static/templates/stream_sidebar_actions.hbs b/static/templates/stream_sidebar_actions.hbs
index f133a5ef401..9090392790a 100644
--- a/static/templates/stream_sidebar_actions.hbs
+++ b/static/templates/stream_sidebar_actions.hbs
@@ -36,7 +36,7 @@
</a>
</li>
<li>
- <a class="toggle_home">
+ <a class="toggle_stream_muted">
{{#if stream.is_muted}}
<i class="fa fa-bell" aria-hidden="true"></i>
{{t "Unmute stream"}}