mirror of https://github.com/zulip/zulip.git
ts: Migrate `spectators.js` to typescript.
This commit is contained in:
parent
cd16176c10
commit
a0cb034731
|
@ -181,7 +181,7 @@ EXEMPT_FILES = make_set(
|
||||||
"web/src/settings_user_topics.js",
|
"web/src/settings_user_topics.js",
|
||||||
"web/src/settings_users.js",
|
"web/src/settings_users.js",
|
||||||
"web/src/setup.ts",
|
"web/src/setup.ts",
|
||||||
"web/src/spectators.js",
|
"web/src/spectators.ts",
|
||||||
"web/src/spoilers.ts",
|
"web/src/spoilers.ts",
|
||||||
"web/src/starred_messages_ui.js",
|
"web/src/starred_messages_ui.js",
|
||||||
"web/src/stream_bar.js",
|
"web/src/stream_bar.js",
|
||||||
|
|
|
@ -14,7 +14,7 @@ import * as hash_util from "./hash_util";
|
||||||
import * as overlays from "./overlays";
|
import * as overlays from "./overlays";
|
||||||
import {page_params} from "./page_params";
|
import {page_params} from "./page_params";
|
||||||
|
|
||||||
export function login_to_access(empty_narrow) {
|
export function login_to_access(empty_narrow?: boolean): void {
|
||||||
// Hide all overlays, popover and go back to the previous hash if the
|
// Hide all overlays, popover and go back to the previous hash if the
|
||||||
// hash has changed.
|
// hash has changed.
|
||||||
const login_link = hash_util.build_login_link();
|
const login_link = hash_util.build_login_link();
|
Loading…
Reference in New Issue