diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-15 15:09:50 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-15 15:09:50 -0600 |
commit | 3725a2eed10707194bc9554a9c58166e9324dfc8 (patch) | |
tree | f167b4541f86eb5b9ff8629c0bbb6486644f498b /src/state/models/shell-ui.ts | |
parent | 9a6df95adecaf3935fdbd58d893fca6489a040b9 (diff) | |
download | voidsky-3725a2eed10707194bc9554a9c58166e9324dfc8.tar.zst |
Add a server instance selector and drop env vars
Diffstat (limited to 'src/state/models/shell-ui.ts')
-rw-r--r-- | src/state/models/shell-ui.ts | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/state/models/shell-ui.ts b/src/state/models/shell-ui.ts index cc884f1c3..73b1bd56e 100644 --- a/src/state/models/shell-ui.ts +++ b/src/state/models/shell-ui.ts @@ -66,6 +66,17 @@ export class InviteToSceneModel { } } +export class ServerInputModel { + name = 'server-input' + + constructor( + public initialService: string, + public onSelect: (url: string) => void, + ) { + makeAutoObservable(this) + } +} + export interface ComposerOpts { replyTo?: Post.PostRef onPost?: () => void @@ -79,6 +90,7 @@ export class ShellUiModel { | SharePostModel | EditProfileModel | CreateSceneModel + | ServerInputModel | undefined isComposerActive = false composerOpts: ComposerOpts | undefined @@ -93,7 +105,8 @@ export class ShellUiModel { | ConfirmModel | SharePostModel | EditProfileModel - | CreateSceneModel, + | CreateSceneModel + | ServerInputModel, ) { this.isModalActive = true this.activeModal = modal |