@@ -53,6 +48,4 @@
defineProps<{
client: LocalClient;
}>();
-
-const globalStore = useGlobalStore();
diff --git a/src/app/components/ClientCard/Config.vue b/src/app/components/ClientCard/Config.vue
index c47bd9fb..31467f41 100644
--- a/src/app/components/ClientCard/Config.vue
+++ b/src/app/components/ClientCard/Config.vue
@@ -1,20 +1,9 @@
diff --git a/src/app/components/ClientCard/ExpireDate.vue b/src/app/components/ClientCard/ExpireDate.vue
index 4d277a06..98ed042d 100644
--- a/src/app/components/ClientCard/ExpireDate.vue
+++ b/src/app/components/ClientCard/ExpireDate.vue
@@ -9,7 +9,6 @@
diff --git a/src/app/components/ClientCard/LastSeen.vue b/src/app/components/ClientCard/LastSeen.vue
index 8d02ff1c..99c233cd 100644
--- a/src/app/components/ClientCard/LastSeen.vue
+++ b/src/app/components/ClientCard/LastSeen.vue
@@ -4,8 +4,7 @@
class="whitespace-nowrap text-gray-400 dark:text-neutral-500"
:title="$t('lastSeen') + dateTime(new Date(client.latestHandshakeAt))"
>
- {{ !globalStore.statistics.enabled ? ' · ' : ''
- }}{{ timeago(new Date(client.latestHandshakeAt)) }}
+ · {{ timeago(new Date(client.latestHandshakeAt)) }}
@@ -15,6 +14,4 @@ import { format as timeago } from 'timeago.js';
defineProps<{
client: LocalClient;
}>();
-
-const globalStore = useGlobalStore();
diff --git a/src/app/components/ClientCard/OneTimeLink.vue b/src/app/components/ClientCard/OneTimeLink.vue
index 102c82c7..bfdedafb 100644
--- a/src/app/components/ClientCard/OneTimeLink.vue
+++ b/src/app/components/ClientCard/OneTimeLink.vue
@@ -4,7 +4,7 @@
:ref="'client-' + client.id + '-link'"
class="text-xs text-gray-400"
>
-
{{ path }}
+
{{ path }}
@@ -13,8 +13,9 @@ const props = defineProps<{ client: LocalClient }>();
const path = computed(() => {
if (import.meta.client) {
- return `${document.location.protocol}//${document.location.host}/cnf/${props.client.oneTimeLink}`;
+ // TODO: show how long its still valid
+ return `${document.location.protocol}//${document.location.host}/cnf/${props.client.oneTimeLink?.oneTimeLink}`;
}
- return '';
+ return 'Loading...';
});
diff --git a/src/app/components/ClientCard/OneTimeLinkBtn.vue b/src/app/components/ClientCard/OneTimeLinkBtn.vue
index 2360f7d6..303559c6 100644
--- a/src/app/components/ClientCard/OneTimeLinkBtn.vue
+++ b/src/app/components/ClientCard/OneTimeLinkBtn.vue
@@ -1,18 +1,8 @@