Commit f8efa21 1 parent 5472aca commit f8efa21 Copy full SHA for f8efa21
File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ const itemData = computed(() => ({
58
58
completed: data .value ?.bestRedirect ?.uuid ,
59
59
},
60
60
{
61
- text: " Test your magic link" ,
61
+ text: t ( " Test your magic link" ) ,
62
62
href: ! data .value ?.bestRedirect ?.uuid
63
63
? " /redirects/create"
64
64
: ` /redirects/${data .value ?.bestRedirect ?.uuid } ` ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import type { Redirect } from "@/types/redirect";
4
4
import CardElement from " @/components/CardElement.vue" ;
5
5
import { getRedirectQrCodeUrl , getRedirects } from " @/useRedirects" ;
6
6
import { removeProtocol } from " @/helpers/urlFormatter" ;
7
+ import BaseButton from " @/components/BaseButton.vue" ;
7
8
8
9
const redirects = ref ([] as Redirect []);
9
10
const isLoading = ref (true );
@@ -57,5 +58,14 @@ const defaultEndpoint = (redirect: Redirect) => {
57
58
/>
58
59
</template >
59
60
</card-element >
61
+
62
+ <card-element
63
+ v-if =" redirects.length === 0 && !isLoading"
64
+ :title =" $t('Create a free permanent magic link')"
65
+ >
66
+ <base-button to =" /redirects/create" >
67
+ {{ $t("Create a free permanent magic link") }}
68
+ </base-button >
69
+ </card-element >
60
70
</div >
61
71
</template >
You can’t perform that action at this time.
0 commit comments