Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream settings: Improve title for stream settings based on content.
m-e-l-u-h-a-ne8030fadc6dd
diff --git a/static/js/stream_edit.js b/static/js/stream_edit.jsindex 45c813817b1..76534f87c59 100644--- a/static/js/stream_edit.js+++ b/static/js/stream_edit.js@@ -182,7 +182,7 @@ export function open_edit_panel_for_row(stream_row) {const sub = get_sub_for_target(stream_row);$(".stream-row.active").removeClass("active");- subs.show_subs_pane.settings();+ subs.show_subs_pane.settings(sub.name);$(stream_row).addClass("active");setup_subscriptions_stream_hash(sub);setup_stream_settings(stream_row);diff --git a/static/js/subs.js b/static/js/subs.jsindex 18eda84ec68..54e7893705a 100644--- a/static/js/subs.js+++ b/static/js/subs.js@@ -41,14 +41,19 @@ export const show_subs_pane = {nothing_selected() {$(".stream-info-title, .settings, #stream-creation").hide();$("#stream_settings_title, .nothing-selected").show();+ $("#subscription_overlay .stream-info-title").text($t({defaultMessage: "Stream settings"}));},- settings() {+ settings(stream_name) {$(".stream-info-title, .settings, #stream-creation").hide();$("#stream_settings_title, .settings").show();+ $("#subscription_overlay .stream-info-title").text(+ $t({defaultMessage: "Settings for #{stream_name}"}, {stream_name}),+ );},create_stream() {$(".stream-info-title, .nothing-selected, .settings, #stream-creation").hide();$("#add_new_stream_title, #stream-creation").show();+ $("#subscription_overlay .stream-info-title").text($t({defaultMessage: "Create stream"}));},};