mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Make navigation simpler
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
c9319c7c38
commit
ef4db4abab
@ -53,8 +53,7 @@ export class CompleteSSOLoginViewModel extends ViewModel {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!loginOptions.token) {
|
if (!loginOptions.token) {
|
||||||
const path = this.navigation.pathFrom([this.navigation.segment("session")]);
|
this.navigation.push("session");
|
||||||
this.navigation.applyPath(path);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const status = await this._attemptLogin(loginOptions.token(this._loginToken));
|
const status = await this._attemptLogin(loginOptions.token(this._loginToken));
|
||||||
|
Loading…
Reference in New Issue
Block a user