Skip to content

Commit

Permalink
feat: add button to copy the item URL (#389)
Browse files Browse the repository at this point in the history
Co-authored-by: zebrapurring <>
  • Loading branch information
zebrapurring authored Dec 24, 2024
1 parent a3ebeb8 commit 441c2e7
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 @@ -528,7 +532,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 441c2e7

Please sign in to comment.