mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-18 08:11:41 +01:00
input is not needed in the name here
This commit is contained in:
parent
8eab9ab28b
commit
d1301fa642
@ -156,7 +156,7 @@ export class LoginViewModel extends ViewModel {
|
|||||||
this.emitChange("disposeViewModels");
|
this.emitChange("disposeViewModels");
|
||||||
}
|
}
|
||||||
|
|
||||||
async setHomeServerInput(newHomeserver) {
|
async setHomeServer(newHomeserver) {
|
||||||
this._homeserver = newHomeserver;
|
this._homeserver = newHomeserver;
|
||||||
// abort ongoing query, if any
|
// abort ongoing query, if any
|
||||||
this._abortQueryOperation = this.disposeTracked(this._abortQueryOperation);
|
this._abortQueryOperation = this.disposeTracked(this._abortQueryOperation);
|
||||||
|
@ -43,7 +43,7 @@ export class LoginView extends TemplateView {
|
|||||||
placeholder: vm.i18n`Your matrix homeserver`,
|
placeholder: vm.i18n`Your matrix homeserver`,
|
||||||
value: vm.homeserver,
|
value: vm.homeserver,
|
||||||
disabled,
|
disabled,
|
||||||
onInput: () => vm.setHomeServerInput(event.target.value),
|
onInput: () => vm.setHomeServer(event.target.value),
|
||||||
onChange: event => vm.queryHomeServer(),
|
onChange: event => vm.queryHomeServer(),
|
||||||
}),
|
}),
|
||||||
t.if(vm => vm.errorMessage, (t, vm) => t.p({className: "error"}, vm.i18n(vm.errorMessage))),
|
t.if(vm => vm.errorMessage, (t, vm) => t.p({className: "error"}, vm.i18n(vm.errorMessage))),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user