mirror of https://github.com/wg-easy/wg-easy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
623 B
26 lines
623 B
<template>
|
|
<div
|
|
v-if="
|
|
globalStore.enableOneTimeLinks &&
|
|
client.oneTimeLink !== null &&
|
|
client.oneTimeLink !== ''
|
|
"
|
|
:ref="'client-' + client.id + '-link'"
|
|
class="text-gray-400 text-xs"
|
|
>
|
|
<a :href="'./cnf/' + client.oneTimeLink + ''">{{ path }}</a>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const props = defineProps<{ client: LocalClient }>();
|
|
|
|
const globalStore = useGlobalStore();
|
|
|
|
const path = computed(() => {
|
|
if (import.meta.client) {
|
|
return `${document.location.protocol}//${document.location.host}/cnf/${props.client.oneTimeLink}`;
|
|
}
|
|
return '';
|
|
});
|
|
</script>
|
|
|