Skip to content

Commit c1ed9e3

Browse files
committed
fix(www): middle click on agreement links
1 parent 2ef5780 commit c1ed9e3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

www/webapp/src/views/SignUp.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@
148148
>
149149
<template #label>
150150
<v-flex>
151-
Yes, I agree to the <a @click.stop="open_route('terms')">Terms of Use</a> and
152-
<a @click.stop="open_route('privacy-policy')">Privacy Policy</a>.
151+
Yes, I agree to the <span @click.stop><router-link :to="{name: 'terms'}" target="_blank">Terms of Use</router-link></span> and
152+
<span @click.stop><router-link :to="{name: 'privacy-policy'}" target="_blank">Privacy Policy</router-link></span>.
153153
</v-flex>
154154
</template>
155155
</v-checkbox>
@@ -236,10 +236,6 @@
236236
this.domainType = this.$route.query.domainType || 'custom';
237237
},
238238
methods: {
239-
async open_route(route) {
240-
window.open(this.$router.resolve({name: route}).href);
241-
this.terms = !this.terms; // silly but easy fix for "accidentally" checking the box by clicking the link
242-
},
243239
async getCaptcha(focus = false) {
244240
this.captchaWorking = true;
245241
this.captchaSolution = "";

0 commit comments

Comments
 (0)