A continuation of HomeBox the inventory and organization system built for the Home User
feat: add button to copy the item URL (#389)
zebrapurring441c2e7a5915
diff --git a/frontend/pages/item/[id]/index.vue b/frontend/pages/item/[id]/index.vueindex 89aa46e3..473072c8 100644--- a/frontend/pages/item/[id]/index.vue+++ b/frontend/pages/item/[id]/index.vue@@ -386,6 +386,10 @@closeDialog();});+ const currentUrl = computed(() => {+ return window.location.href;+ });+const currentPath = computed(() => {return route.path;});@@ -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">