From 82db5f6339c04c55ff03dad4b89ab8b1b7da379d Mon Sep 17 00:00:00 2001 From: N Pex Date: Wed, 25 Oct 2023 21:22:41 +0000 Subject: [PATCH] Resolve ""Next" on GetLink requires two taps to proceed" --- src/components/GetLink.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/GetLink.vue b/src/components/GetLink.vue index cb08762..df8e4f0 100644 --- a/src/components/GetLink.vue +++ b/src/components/GetLink.vue @@ -17,7 +17,7 @@ - {{ $t("getlink.next") }} {{ $t("menu.login") }} @@ -143,7 +143,9 @@ export default { this.loading = true; - this.$store.dispatch("createUser", { user, registrationFlowHandler: this.$refs.interactiveAuth.registrationFlowHandler }).then( + this.onUsernameBlur().then(() => + this.$store.dispatch("createUser", { user, registrationFlowHandler: this.$refs.interactiveAuth.registrationFlowHandler })) + .then( (ignoreduser) => { this.$matrix.setUserDisplayName(userDisplayName); }, @@ -195,7 +197,7 @@ export default { this.loadingLoginFlows = true; const matrixClient = sdk.createClient({ baseUrl: server }); - matrixClient.loginFlows().then((response) => { + return matrixClient.loginFlows().then((response) => { console.log("FLOWS", response.flows); this.loginFlows = response.flows.filter(this.supportedLoginFlow); this.loadingLoginFlows = false; @@ -207,6 +209,8 @@ export default { this.hasError = false; } }); + } else { + return Promise.resolve(); } }, supportedLoginFlow(flow) {