chore: add server switcher (#2717)

* wip

* wip2

* refactor: use radio button group

* chore: add persisting host per workspace

* chore: header style

* chore: update server picker title style

* chore: margin

* chore: label

* chore: remove separator

* rename migration to latest snjs version

---------

Co-authored-by: Aman Harwara <amanharwara@protonmail.com>
This commit is contained in:
Karol Sójko
2023-12-28 10:50:14 +01:00
committed by GitHub
parent f376607f27
commit bc845c1633
13 changed files with 198 additions and 109 deletions

View File

@@ -64,7 +64,7 @@ export interface ApplicationInterface {
setPreference<K extends PrefKey>(key: K, value: PrefValue[K]): Promise<void>
hasAccount(): boolean
setCustomHost(host: string): Promise<void>
setCustomHost(host: string, websocketUrl?: string): Promise<void>
isUsingHomeServer(): Promise<boolean>
importData(data: BackupFile, awaitSync?: boolean): Promise<Result<ImportDataResult>>