mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-02 07:31:38 +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");
|
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…
x
Reference in New Issue
Block a user