forked from mystiq/hydrogen-web
input is not needed in the name here
This commit is contained in:
parent
8eab9ab28b
commit
d1301fa642
2 changed files with 2 additions and 2 deletions
|
@ -156,7 +156,7 @@ export class LoginViewModel extends ViewModel {
|
|||
this.emitChange("disposeViewModels");
|
||||
}
|
||||
|
||||
async setHomeServerInput(newHomeserver) {
|
||||
async setHomeServer(newHomeserver) {
|
||||
this._homeserver = newHomeserver;
|
||||
// abort ongoing query, if any
|
||||
this._abortQueryOperation = this.disposeTracked(this._abortQueryOperation);
|
||||
|
|
|
@ -43,7 +43,7 @@ export class LoginView extends TemplateView {
|
|||
placeholder: vm.i18n`Your matrix homeserver`,
|
||||
value: vm.homeserver,
|
||||
disabled,
|
||||
onInput: () => vm.setHomeServerInput(event.target.value),
|
||||
onInput: () => vm.setHomeServer(event.target.value),
|
||||
onChange: event => vm.queryHomeServer(),
|
||||
}),
|
||||
t.if(vm => vm.errorMessage, (t, vm) => t.p({className: "error"}, vm.i18n(vm.errorMessage))),
|
||||
|
|
Loading…
Reference in a new issue