stream settings: Clean unnecessary elements in stream settings.

This commit is contained in:
m-e-l-u-h-a-n 2021-07-04 22:10:52 +05:30 committed by Tim Abbott
parent e8030fadc6
commit 8a2cc75e0e
2 changed files with 6 additions and 7 deletions

View File

@ -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"}));
},
};

View File

@ -29,7 +29,6 @@
</div>
<div class="right">
<div class="display-type">
<div id="add_new_stream_title" class="stream-info-title">{{t 'Create stream' }}</div>
<div id="stream_settings_title" class="stream-info-title">{{t 'Stream settings' }}</div>
</div>
<div class="nothing-selected">