From 8a2cc75e0e3ec94c3a79de2e0a7b7858ee5136fd Mon Sep 17 00:00:00 2001 From: m-e-l-u-h-a-n Date: Sun, 4 Jul 2021 22:10:52 +0530 Subject: [PATCH] stream settings: Clean unnecessary elements in stream settings. --- static/js/subs.js | 12 ++++++------ static/templates/subscription_table_body.hbs | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/static/js/subs.js b/static/js/subs.js index 54e7893705..ba8aae9323 100644 --- a/static/js/subs.js +++ b/static/js/subs.js @@ -39,20 +39,20 @@ import * as util from "./util"; export const show_subs_pane = { nothing_selected() { - $(".stream-info-title, .settings, #stream-creation").hide(); - $("#stream_settings_title, .nothing-selected").show(); + $(".settings, #stream-creation").hide(); + $(".nothing-selected").show(); $("#subscription_overlay .stream-info-title").text($t({defaultMessage: "Stream settings"})); }, settings(stream_name) { - $(".stream-info-title, .settings, #stream-creation").hide(); - $("#stream_settings_title, .settings").show(); + $(".settings, #stream-creation").hide(); + $(".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(); + $(".nothing-selected, .settings, #stream-creation").hide(); + $("#stream-creation").show(); $("#subscription_overlay .stream-info-title").text($t({defaultMessage: "Create stream"})); }, }; diff --git a/static/templates/subscription_table_body.hbs b/static/templates/subscription_table_body.hbs index 84aec7f3f2..12e530dd47 100644 --- a/static/templates/subscription_table_body.hbs +++ b/static/templates/subscription_table_body.hbs @@ -29,7 +29,6 @@
-
{{t 'Create stream' }}
{{t 'Stream settings' }}