Resolve ""Next" on GetLink requires two taps to proceed"
This commit is contained in:
parent
e3c878ff73
commit
82db5f6339
1 changed files with 7 additions and 3 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
<interactive-auth ref="interactiveAuth" />
|
<interactive-auth ref="interactiveAuth" />
|
||||||
|
|
||||||
<v-btn id="btn-login" :disabled="!isValid || loading || loadingLoginFlows" color="primary" depressed block
|
<v-btn id="btn-login" :disabled="!isValid || loading" color="primary" depressed block
|
||||||
@click.stop="handleLogin" :loading="loading" class="filled-button mt-4">{{ $t("getlink.next") }}</v-btn>
|
@click.stop="handleLogin" :loading="loading" class="filled-button mt-4">{{ $t("getlink.next") }}</v-btn>
|
||||||
<v-btn color="black" depressed text block @click.stop="goToLoginPage" class="text-button">{{ $t("menu.login")
|
<v-btn color="black" depressed text block @click.stop="goToLoginPage" class="text-button">{{ $t("menu.login")
|
||||||
}}</v-btn>
|
}}</v-btn>
|
||||||
|
|
@ -143,7 +143,9 @@ export default {
|
||||||
|
|
||||||
this.loading = true;
|
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) => {
|
(ignoreduser) => {
|
||||||
this.$matrix.setUserDisplayName(userDisplayName);
|
this.$matrix.setUserDisplayName(userDisplayName);
|
||||||
},
|
},
|
||||||
|
|
@ -195,7 +197,7 @@ export default {
|
||||||
this.loadingLoginFlows = true;
|
this.loadingLoginFlows = true;
|
||||||
|
|
||||||
const matrixClient = sdk.createClient({ baseUrl: server });
|
const matrixClient = sdk.createClient({ baseUrl: server });
|
||||||
matrixClient.loginFlows().then((response) => {
|
return matrixClient.loginFlows().then((response) => {
|
||||||
console.log("FLOWS", response.flows);
|
console.log("FLOWS", response.flows);
|
||||||
this.loginFlows = response.flows.filter(this.supportedLoginFlow);
|
this.loginFlows = response.flows.filter(this.supportedLoginFlow);
|
||||||
this.loadingLoginFlows = false;
|
this.loadingLoginFlows = false;
|
||||||
|
|
@ -207,6 +209,8 @@ export default {
|
||||||
this.hasError = false;
|
this.hasError = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
supportedLoginFlow(flow) {
|
supportedLoginFlow(flow) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue