recent: Rename update_buttons_for_recent_topics.

This commit is contained in:
evykassirer 2023-09-06 14:50:58 -07:00 committed by Tim Abbott
parent ee2208ff9a
commit 0804704a76
3 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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());

View File

@ -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,