Skip to content

Commit

Permalink
feat: add button to copy the item URL
Browse files Browse the repository at this point in the history
  • Loading branch information
zebrapurring committed Dec 19, 2024
1 parent 6142c31 commit fcba843
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion frontend/pages/item/[id]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,10 @@
closeDialog();
});
const currentUrl = computed(() => {
return window.location.href;
});
const currentPath = computed(() => {
return route.path;
});
Expand Down Expand Up @@ -525,7 +529,10 @@
<input v-model="preferences.showEmpty" type="checkbox" class="toggle toggle-primary" />
<span class="label-text ml-4"> Show Empty </span>
</label>
<PageQRCode />
<div class="space-x-1">
<CopyText :text="currentUrl" :icon-size="16" class="btn btn-circle btn-ghost btn-xs" />
<PageQRCode />
</div>
</div>
</template>
<DetailsSection :details="itemDetails">
Expand Down

0 comments on commit fcba843

Please sign in to comment.