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:
@@ -169,7 +169,7 @@ export class SessionManager
|
||||
}
|
||||
}
|
||||
|
||||
const serverHost = this.storage.getValue<string>(StorageKey.ServerHost)
|
||||
const serverHost = this.storage.getValue<string | undefined>(`${StorageKey.ServerHost}:${this.workspaceIdentifier}`)
|
||||
if (serverHost) {
|
||||
void this.apiService.setHost(serverHost)
|
||||
this.httpService.setHost(serverHost)
|
||||
|
||||
Reference in New Issue
Block a user