Skip to content

Commit 5472aca

Browse files
committed
fix: dashboard translations and links
1 parent c4c2dc4 commit 5472aca

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/locales/en.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -272,5 +272,6 @@
272272
"Your subscription was not canceled.": "Your subscription was not canceled.",
273273
"Across industries, our magic links are making a difference": "Across industries, our magic links are making a difference",
274274
"We've taken the best parts of QR codes and made them even better.": "We've taken the best parts of QR codes and made them even better.",
275-
"Billed anually. Cancel anytime": "Billed anually. Cancel anytime"
275+
"Billed anually. Cancel anytime": "Billed anually. Cancel anytime",
276+
"Create your first Smart Magic Link": "Create your first Smart Magic Link"
276277
}

src/locales/fr.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -272,5 +272,6 @@
272272
"Your subscription was not canceled.": "Votre abonnement n'a pas été annulé.",
273273
"Across industries, our magic links are making a difference": "Dans tous les secteurs, nos liens magiques font la différence",
274274
"We've taken the best parts of QR codes and made them even better.": "Nous avons pris les meilleures parties des codes QR et les avons rendues encore meilleures.",
275-
"Billed anually. Cancel anytime": "Facturé annuellement. Annulez à tout moment"
275+
"Billed anually. Cancel anytime": "Facturé annuellement. Annulez à tout moment",
276+
"Create your first Smart Magic Link": "Créez votre premier lien magique intelligent"
276277
}

src/views/DashboardView.vue

+7-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ const itemData = computed(() => ({
5959
},
6060
{
6161
text: "Test your magic link",
62-
href: `/redirects/${data.value?.bestRedirect?.uuid}`,
62+
href: !data.value?.bestRedirect?.uuid
63+
? "/redirects/create"
64+
: `/redirects/${data.value?.bestRedirect?.uuid}`,
6365
target: "",
6466
completed: data.value?.clicks?.total
6567
? data.value?.clicks?.total > 0
@@ -72,8 +74,10 @@ const itemData = computed(() => ({
7274
completed: data.value?.hasPaymentMethodSet,
7375
},
7476
{
75-
text: "Create your first Smart Magic Link",
76-
href: `/redirects/${data.value?.bestRedirect?.uuid}`,
77+
text: t("Create your first Smart Magic Link"),
78+
href: !data.value?.bestRedirect?.uuid
79+
? "/redirects/create"
80+
: `/redirects/${data.value?.bestRedirect?.uuid}`,
7781
target: "",
7882
completed: data.value?.hasBillableRedirects,
7983
},

0 commit comments

Comments
 (0)