Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3516316
D8866.id30071.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
848 B
Referenced Files
None
Subscribers
None
D8866.id30071.diff
View Options
diff --git a/web/types/nav-types.js b/web/types/nav-types.js
--- a/web/types/nav-types.js
+++ b/web/types/nav-types.js
@@ -14,8 +14,9 @@
import { tID, tShape } from 'lib/utils/validation-utils.js';
export type NavigationTab = 'calendar' | 'chat' | 'settings';
-export type LoginMethod = 'form' | 'qr-code';
const navigationTabValidator = t.enums.of(['calendar', 'chat', 'settings']);
+export type LoginMethod = 'form' | 'qr-code';
+const loginMethodValidator = t.enums.of(['form', 'qr-code']);
export type NavigationSettingsSection = 'account' | 'danger-zone';
const navigationSettingsSectionValidator = t.enums.of([
@@ -48,4 +49,5 @@
selectedUserList: t.maybe(t.list(accountUserInfoValidator)),
chatMode: t.maybe(navigationChatModeValidator),
inviteSecret: t.maybe(t.String),
+ loginMethod: t.maybe(loginMethodValidator),
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 1:43 PM (13 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2694806
Default Alt Text
D8866.id30071.diff (848 B)
Attached To
Mode
D8866: [web] Fix nav info validator
Attached
Detach File
Event Timeline
Log In to Comment