Remove queryLoginFromInput()

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-08-01 20:21:04 +05:30
parent 2103adfc03
commit 2c953e361d
2 changed files with 1 additions and 6 deletions

View file

@ -71,11 +71,6 @@ export class LoginViewModel extends ViewModel {
this.emitChange("supportsSSOLogin");
}
queryLoginFromInput() {
const homeServer = document.querySelector("#homeserver").value;
this.queryLogin(homeServer);
}
async login(username, password, homeserver) {
this._loadViewModelSubscription = this.disposeTracked(this._loadViewModelSubscription);
if (this._loadViewModel) {

View file

@ -38,7 +38,7 @@ export class LoginView extends TemplateView {
type: "text",
placeholder: vm.i18n`Your matrix homeserver`,
value: vm.defaultHomeServer,
onChange: () => vm.queryLoginFromInput(),
onChange: () => vm.queryLogin(homeserver.value),
disabled
});