Skip to content

Commit

Permalink
fix: dashboard translations and links
Browse files Browse the repository at this point in the history
  • Loading branch information
mwargan committed Apr 25, 2024
1 parent c4c2dc4 commit 5472aca
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,5 +272,6 @@
"Your subscription was not canceled.": "Your subscription was not canceled.",
"Across industries, our magic links are making a difference": "Across industries, our magic links are making a difference",
"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.",
"Billed anually. Cancel anytime": "Billed anually. Cancel anytime"
"Billed anually. Cancel anytime": "Billed anually. Cancel anytime",
"Create your first Smart Magic Link": "Create your first Smart Magic Link"
}
3 changes: 2 additions & 1 deletion src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,5 +272,6 @@
"Your subscription was not canceled.": "Votre abonnement n'a pas été annulé.",
"Across industries, our magic links are making a difference": "Dans tous les secteurs, nos liens magiques font la différence",
"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.",
"Billed anually. Cancel anytime": "Facturé annuellement. Annulez à tout moment"
"Billed anually. Cancel anytime": "Facturé annuellement. Annulez à tout moment",
"Create your first Smart Magic Link": "Créez votre premier lien magique intelligent"
}
10 changes: 7 additions & 3 deletions src/views/DashboardView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ const itemData = computed(() => ({
},
{
text: "Test your magic link",
href: `/redirects/${data.value?.bestRedirect?.uuid}`,
href: !data.value?.bestRedirect?.uuid
? "/redirects/create"
: `/redirects/${data.value?.bestRedirect?.uuid}`,
target: "",
completed: data.value?.clicks?.total
? data.value?.clicks?.total > 0
Expand All @@ -72,8 +74,10 @@ const itemData = computed(() => ({
completed: data.value?.hasPaymentMethodSet,
},
{
text: "Create your first Smart Magic Link",
href: `/redirects/${data.value?.bestRedirect?.uuid}`,
text: t("Create your first Smart Magic Link"),
href: !data.value?.bestRedirect?.uuid
? "/redirects/create"
: `/redirects/${data.value?.bestRedirect?.uuid}`,
target: "",
completed: data.value?.hasBillableRedirects,
},
Expand Down

0 comments on commit 5472aca

Please sign in to comment.