mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
better naming
This commit is contained in:
parent
d31e442c16
commit
65bd892d8f
@ -49,7 +49,7 @@ export class LoginViewModel extends ViewModel {
|
||||
get startSSOLoginViewModel() { return this._startSSOLoginViewModel; }
|
||||
get completeSSOLoginViewModel(){ return this._completeSSOLoginViewModel; }
|
||||
get homeserver() { return this._homeserver; }
|
||||
get forwardedHomeserver() { return this._loginOptions?.homeserver; }
|
||||
get resolvedHomeserver() { return this._loginOptions?.homeserver; }
|
||||
get errorMessage() { return this._errorMessage; }
|
||||
get showHomeserver() { return !this._hideHomeserver; }
|
||||
get loadViewModel() {return this._loadViewModel; }
|
||||
@ -204,7 +204,7 @@ export class LoginViewModel extends ViewModel {
|
||||
this._abortQueryOperation = this.track(() => queryOperation.abort());
|
||||
this.emitChange("isFetchingLoginOptions");
|
||||
this._loginOptions = await queryOperation.result;
|
||||
this.emitChange("forwardedHomeserver");
|
||||
this.emitChange("resolvedHomeserver");
|
||||
}
|
||||
catch (e) {
|
||||
if (e.name === "AbortError") {
|
||||
|
@ -48,8 +48,8 @@ export class LoginView extends TemplateView {
|
||||
}),
|
||||
t.p({className: {
|
||||
LoginView_forwardInfo: true,
|
||||
hidden: vm => !vm.forwardedHomeserver
|
||||
}}, vm => vm.i18n`You will connect to ${vm.forwardedHomeserver}.`),
|
||||
hidden: vm => !vm.resolvedHomeserver
|
||||
}}, vm => vm.i18n`You will connect to ${vm.resolvedHomeserver}.`),
|
||||
t.if(vm => vm.errorMessage, (t, vm) => t.p({className: "error"}, vm.i18n(vm.errorMessage))),
|
||||
]
|
||||
)),
|
||||
|
Loading…
Reference in New Issue
Block a user