mirror of https://github.com/wg-easy/wg-easy
13 changed files with 101 additions and 36 deletions
@ -1,21 +1,26 @@ |
|||||
<template> |
<template> |
||||
<div |
<div |
||||
v-if=" |
v-if=" |
||||
enableOneTimeLinks && |
globalStore.enableOneTimeLinks && |
||||
client.oneTimeLink !== null && |
client.oneTimeLink !== null && |
||||
client.oneTimeLink !== '' |
client.oneTimeLink !== '' |
||||
" |
" |
||||
:ref="'client-' + client.id + '-link'" |
:ref="'client-' + client.id + '-link'" |
||||
class="text-gray-400 text-xs" |
class="text-gray-400 text-xs" |
||||
> |
> |
||||
<a :href="'./cnf/' + client.oneTimeLink + ''" |
<a :href="'./cnf/' + client.oneTimeLink + ''">{{ path }}</a> |
||||
>{{ document.location.protocol }}//{{ document.location.host }}/cnf/{{ |
|
||||
client.oneTimeLink |
|
||||
}}</a |
|
||||
> |
|
||||
</div> |
</div> |
||||
</template> |
</template> |
||||
|
|
||||
<script setup lang="ts"> |
<script setup lang="ts"> |
||||
defineProps<{ client: LocalClient }>(); |
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> |
</script> |
||||
|
Loading…
Reference in new issue