mirror of https://github.com/zulip/zulip.git
recent: Rename update_buttons_for_recent_topics.
This commit is contained in:
parent
ee2208ff9a
commit
0804704a76
|
@ -128,7 +128,7 @@ export function update_buttons_for_stream() {
|
|||
update_buttons(text_stream);
|
||||
}
|
||||
|
||||
export function update_buttons_for_recent_topics() {
|
||||
export function update_buttons_for_recent_view() {
|
||||
const text_stream = $t({defaultMessage: "New stream message"});
|
||||
$("#left_bar_compose_stream_button_big").attr(
|
||||
"data-tooltip-template-id",
|
||||
|
|
|
@ -921,7 +921,7 @@ export function show() {
|
|||
// We want to show `new stream message` instead of
|
||||
// `new topic`, which we are already doing in this
|
||||
// function. So, we reuse it here.
|
||||
compose_closed_ui.update_buttons_for_recent_topics();
|
||||
compose_closed_ui.update_buttons_for_recent_view();
|
||||
|
||||
narrow_state.reset_current_filter();
|
||||
narrow.update_narrow_title(narrow_state.filter());
|
||||
|
|
|
@ -86,7 +86,7 @@ const ListWidget = mock_esm("../src/list_widget", {
|
|||
|
||||
mock_esm("../src/compose_closed_ui", {
|
||||
set_standard_text_for_reply_button: noop,
|
||||
update_buttons_for_recent_topics: noop,
|
||||
update_buttons_for_recent_view: noop,
|
||||
});
|
||||
mock_esm("../src/hash_util", {
|
||||
by_stream_url: test_url,
|
||||
|
|
Loading…
Reference in New Issue