mirror of https://github.com/zulip/zulip.git
stream_settings: Extract function to set title in right column.
This is a prep commit such that we can use this function to live-update the title.
This commit is contained in:
parent
12efde8a51
commit
74294ae602
|
@ -39,6 +39,10 @@ import * as ui from "./ui";
|
|||
import * as ui_report from "./ui_report";
|
||||
import * as util from "./util";
|
||||
|
||||
export function set_right_panel_title(sub) {
|
||||
$("#subscription_overlay .stream-info-title").html(render_selected_stream_title(sub));
|
||||
}
|
||||
|
||||
export const show_subs_pane = {
|
||||
nothing_selected() {
|
||||
$(".settings, #stream-creation").hide();
|
||||
|
@ -48,7 +52,7 @@ export const show_subs_pane = {
|
|||
settings(sub) {
|
||||
$(".settings, #stream-creation").hide();
|
||||
$(".settings").show();
|
||||
$("#subscription_overlay .stream-info-title").html(render_selected_stream_title(sub));
|
||||
set_right_panel_title(sub);
|
||||
},
|
||||
create_stream() {
|
||||
$(".nothing-selected, .settings, #stream-creation").hide();
|
||||
|
|
Loading…
Reference in New Issue