Skip to content

Commit

Permalink
fix(www): middle click on agreement links
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaslihotzki authored and peterthomassen committed Mar 7, 2023
1 parent 2ef5780 commit e26ea66
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions www/webapp/src/views/SignUp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@
>
<template #label>
<v-flex>
Yes, I agree to the <a @click.stop="open_route('terms')">Terms of Use</a> and
<a @click.stop="open_route('privacy-policy')">Privacy Policy</a>.
Yes, I agree to the <span @click.stop><router-link :to="{name: 'terms'}" target="_blank">Terms of Use</router-link></span> and
<span @click.stop><router-link :to="{name: 'privacy-policy'}" target="_blank">Privacy Policy</router-link></span>.
</v-flex>
</template>
</v-checkbox>
Expand Down Expand Up @@ -236,10 +236,6 @@
this.domainType = this.$route.query.domainType || 'custom';
},
methods: {
async open_route(route) {
window.open(this.$router.resolve({name: route}).href);
this.terms = !this.terms; // silly but easy fix for "accidentally" checking the box by clicking the link
},
async getCaptcha(focus = false) {
this.captchaWorking = true;
this.captchaSolution = "";
Expand Down

0 comments on commit e26ea66

Please sign in to comment.