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");
|
this.emitChange("supportsSSOLogin");
|
||||||
}
|
}
|
||||||
|
|
||||||
queryLoginFromInput() {
|
|
||||||
const homeServer = document.querySelector("#homeserver").value;
|
|
||||||
this.queryLogin(homeServer);
|
|
||||||
}
|
|
||||||
|
|
||||||
async login(username, password, homeserver) {
|
async login(username, password, homeserver) {
|
||||||
this._loadViewModelSubscription = this.disposeTracked(this._loadViewModelSubscription);
|
this._loadViewModelSubscription = this.disposeTracked(this._loadViewModelSubscription);
|
||||||
if (this._loadViewModel) {
|
if (this._loadViewModel) {
|
||||||
|
|
|
@ -38,7 +38,7 @@ export class LoginView extends TemplateView {
|
||||||
type: "text",
|
type: "text",
|
||||||
placeholder: vm.i18n`Your matrix homeserver`,
|
placeholder: vm.i18n`Your matrix homeserver`,
|
||||||
value: vm.defaultHomeServer,
|
value: vm.defaultHomeServer,
|
||||||
onChange: () => vm.queryLoginFromInput(),
|
onChange: () => vm.queryLogin(homeserver.value),
|
||||||
disabled
|
disabled
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue