mirror of https://github.com/zulip/zulip.git
stream settings: Clean unnecessary elements in stream settings.
This commit is contained in:
parent
e8030fadc6
commit
8a2cc75e0e
|
@ -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"}));
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue