mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Remove defaultHomeServer prop
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
10a6aca477
commit
17f1d6b16a
@ -25,22 +25,21 @@ export class LoginViewModel extends ViewModel {
|
|||||||
const {ready, defaultHomeServer, createSessionContainer, loginToken} = options;
|
const {ready, defaultHomeServer, createSessionContainer, loginToken} = options;
|
||||||
this._createSessionContainer = createSessionContainer;
|
this._createSessionContainer = createSessionContainer;
|
||||||
this._ready = ready;
|
this._ready = ready;
|
||||||
this._defaultHomeServer = defaultHomeServer;
|
|
||||||
this._loginToken = loginToken;
|
this._loginToken = loginToken;
|
||||||
this._sessionContainer = this._createSessionContainer();
|
this._sessionContainer = this._createSessionContainer();
|
||||||
this._loginOptions = null;
|
this._loginOptions = null;
|
||||||
this._passwordLoginViewModel = null;
|
this._passwordLoginViewModel = null;
|
||||||
this._startSSOLoginViewModel = null;
|
this._startSSOLoginViewModel = null;
|
||||||
this._completeSSOLoginViewModel = null;
|
this._completeSSOLoginViewModel = null;
|
||||||
this._homeserver = null;
|
this._homeserver = defaultHomeServer;
|
||||||
this._errorMessage = "";
|
this._errorMessage = "";
|
||||||
this._start(this._defaultHomeServer);
|
this._start(this._homeserver);
|
||||||
}
|
}
|
||||||
|
|
||||||
get passwordLoginViewModel() { return this._passwordLoginViewModel; }
|
get passwordLoginViewModel() { return this._passwordLoginViewModel; }
|
||||||
get startSSOLoginViewModel() { return this._startSSOLoginViewModel; }
|
get startSSOLoginViewModel() { return this._startSSOLoginViewModel; }
|
||||||
get completeSSOLoginViewModel(){ return this._completeSSOLoginViewModel; }
|
get completeSSOLoginViewModel(){ return this._completeSSOLoginViewModel; }
|
||||||
get defaultHomeServer() { return this._defaultHomeServer; }
|
get defaultHomeServer() { return this._homeserver; }
|
||||||
get errorMessage() { return this._errorMessage; }
|
get errorMessage() { return this._errorMessage; }
|
||||||
|
|
||||||
async _start(homeserver) {
|
async _start(homeserver) {
|
||||||
@ -110,7 +109,7 @@ export class LoginViewModel extends ViewModel {
|
|||||||
},
|
},
|
||||||
sessionContainer: this._sessionContainer,
|
sessionContainer: this._sessionContainer,
|
||||||
loginOptions: this._loginOptions,
|
loginOptions: this._loginOptions,
|
||||||
homeserver: this._homeserver ?? this._defaultHomeServer
|
homeserver: this._homeserver
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user