Add a server instance selector and drop env vars

This commit is contained in:
Paul Frazee 2022-11-15 15:09:50 -06:00
parent 9a6df95ade
commit 3725a2eed1
14 changed files with 383 additions and 174 deletions

View file

@ -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