/
githubmirror
/
zulip
Обзор
Документация
Войти
/
githubmirror
/
zulip
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
web/src/narrow_error.ts
24 строки
597 B
Pratik Chanda
narrow_banner: Add search shared history button to empty narrows.
22 июн 2026, 11:13
22 июн 2026, 11:13
1ca93b9
Код
Авторство
О чём код?
import render_empty_feed_notice from "../templates/empty_feed_notice.hbs"; type QueryWord = { query_word: string; is_stop_word: boolean; }; export type SearchData = { query_words: QueryWord[]; has_stop_word: boolean; }; export type NarrowBannerData = { html?: string; show_action?: boolean; search_data?: SearchData; } & ({title: string} | {title_html: string}); export function narrow_error(narrow_banner_data: NarrowBannerData): string { return render_empty_feed_notice({ ...narrow_banner_data, notice_html: narrow_banner_data.html, }); }