Skip to content

Commit 2160efc

Browse files
committed
fix: removed delete option when unauthed
1 parent e197bb2 commit 2160efc

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed
-7.94 KB
Loading

src/components/QR/QRAnalytics.vue

-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ defineProps({
100100
"
101101
:allowBackgroundClickToClose="false"
102102
:gate="[
103-
'auth',
104103
'confirmedEmailOrPhone',
105104
{
106105
name: 'subscribedRedirect',

src/components/QR/QRDestinations.vue

-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ defineProps({
8888
"
8989
:allowBackgroundClickToClose="false"
9090
:gate="[
91-
'auth',
9291
'confirmedEmailOrPhone',
9392
{
9493
name: 'subscribedRedirect',

src/components/screens/SingleQR.vue

+9-4
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,14 @@ const OtpLoginOrRegister = defineAsyncComponent(
242242
<div class="main-grid-display">
243243
<hgroup class="smaller-gap">
244244
<h2 v-if="showTitle">{{ title }}</h2>
245-
<p>{{ description }}</p>
246245
<p v-if="!authenticated">
247246
{{
248247
$t(
249248
"Claim your link now to edit designs, manage destinations, and see analytics."
250249
)
251250
}}
252251
</p>
252+
<p v-else>{{ description }}</p>
253253
</hgroup>
254254

255255
<div class="main-grid-display smaller-gap">
@@ -395,7 +395,6 @@ const OtpLoginOrRegister = defineAsyncComponent(
395395
"
396396
:allowBackgroundClickToClose="false"
397397
:gate="[
398-
'auth',
399398
'confirmedEmailOrPhone',
400399
{
401400
name: 'subscribedRedirect',
@@ -453,7 +452,6 @@ const OtpLoginOrRegister = defineAsyncComponent(
453452
"
454453
:allowBackgroundClickToClose="false"
455454
:gate="[
456-
'auth',
457455
'confirmedEmailOrPhone',
458456
{
459457
name: 'subscribedRedirect',
@@ -476,7 +474,14 @@ const OtpLoginOrRegister = defineAsyncComponent(
476474
<h3>{{ $t("Delete Magic Link") }}</h3>
477475
<p>{{ $t("Delete this magic link and all its destinations") }}</p>
478476
</hgroup>
479-
<base-button class="outline">{{ $t("Delete forever") }}</base-button>
477+
<p v-if="!authenticated">
478+
{{
479+
$t("If you don't claim your link it will be deleted in 3 minutes.")
480+
}}
481+
</p>
482+
<base-button v-else class="outline">{{
483+
$t("Delete forever")
484+
}}</base-button>
480485
</card-element>
481486
</div>
482487
</div>

0 commit comments

Comments
 (0)