Add a server instance selector and drop env vars
This commit is contained in:
parent
9a6df95ade
commit
3725a2eed1
14 changed files with 383 additions and 174 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue