Actually make SessionLoadViewModel.logout do something

This commit is contained in:
Hugh Nimmo-Smith 2022-07-31 10:06:01 +01:00 committed by Quentin Gliech
parent 1482ba24bf
commit 887c3d4f89
No known key found for this signature in database
GPG Key ID: 22D62B84552719FC

View File

@ -154,7 +154,8 @@ export class SessionLoadViewModel extends ViewModel {
} }
async logout() { async logout() {
await this._client.logout(); const sessionId = this.navigation.path.get("session")?.value;
await this._client.startLogout(sessionId);
this.navigation.push("session", true); this.navigation.push("session", true);
} }