mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2026-01-04 12:04:58 +01:00
feat: add button to copy the item URL (#389)
Some checks failed
Docker publish ARM / build (push) Has been cancelled
Docker publish rootless ARM / build-rootless (push) Has been cancelled
Docker publish rootless / build-rootless (push) Has been cancelled
Docker publish / build (push) Has been cancelled
Update Currencies / update-currencies (push) Has been cancelled
Some checks failed
Docker publish ARM / build (push) Has been cancelled
Docker publish rootless ARM / build-rootless (push) Has been cancelled
Docker publish rootless / build-rootless (push) Has been cancelled
Docker publish / build (push) Has been cancelled
Update Currencies / update-currencies (push) Has been cancelled
Co-authored-by: zebrapurring <>
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user