login_to_access: Rename module to spectators.

This allows us to call spectators.login_to_access which
is more clear for what it does.
This commit is contained in:
Aman Agrawal
2021-09-07 07:39:12 +05:30
committed by Tim Abbott
parent 354dfb02e5
commit 31de905955
6 changed files with 11 additions and 11 deletions

View File

@@ -8,11 +8,11 @@ import * as blueslip from "./blueslip";
import * as channel from "./channel";
import * as emoji_picker from "./emoji_picker";
import {$t} from "./i18n";
import * as login_to_access from "./login_to_access";
import * as message_lists from "./message_lists";
import * as message_store from "./message_store";
import {page_params} from "./page_params";
import * as people from "./people";
import * as spectators from "./spectators";
import {user_settings} from "./user_settings";
export const view = {}; // function namespace
@@ -114,7 +114,7 @@ export function process_reaction_click(message_id, local_id) {
if (page_params.is_spectator) {
// Spectators can't react, since they don't have accounts. We
// stop here to avoid a confusing reaction local echo.
login_to_access.show();
spectators.login_to_access();
return;
}