forked from mystiq/hydrogen-web
Remove queryLoginFromInput()
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
2103adfc03
commit
2c953e361d
2 changed files with 1 additions and 6 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue