Skip to content

Commit cc690a5

Browse files
committed
Add conditional rendering for UUID display in template
1 parent 5ba8d9f commit cc690a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gui/src/components/UUID.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ const shortUuid = computed(() => {
1111
</script>
1212

1313
<template>
14-
<div class="tooltip" :data-tip="uuid">
14+
<div v-if="uuid.length > 8" class="tooltip" :data-tip="uuid">
1515
{{ shortUuid }}
1616
</div>
17+
<div v-else>
18+
{{ uuid }}
19+
</div>
1720
</template>

0 commit comments

Comments
 (0)