mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-01 23:21:40 +01:00
Remove queryLoginFromInput()
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
2103adfc03
commit
2c953e361d
@ -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…
x
Reference in New Issue
Block a user