This commit is contained in:
2026-08-29 14:37:17 +02:00
parent b131d91686
commit 7da0f97e60
7 changed files with 50 additions and 5 deletions
+4
View File
@@ -36,6 +36,7 @@ export default class Enclave<P = Page> {
public isSettingsOpen: boolean;
public forceRender: () => void;
public page?: P;
public sidebarPageKind: "server" | "main";
public config?: Config;
public backendConfig: BackendConfig;
@@ -47,6 +48,7 @@ export default class Enclave<P = Page> {
isMuted: false,
isDeaf: false,
};
this.sidebarPageKind = "main";
}
public async init() {
@@ -106,6 +108,8 @@ export default class Enclave<P = Page> {
}
public async connectToServer(hostname: string, isSecure: boolean) {
this.sidebarPageKind = "server";
if (this.server) {
this.server.disconnect();
}