input is not needed in the name here

This commit is contained in:
Bruno Windels 2021-08-23 15:57:16 +02:00
parent 8eab9ab28b
commit d1301fa642
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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))),