diff --git a/client/components/open/forms/components/CopyContent.vue b/client/components/open/forms/components/CopyContent.vue
index 95643b3..9a1fc65 100644
--- a/client/components/open/forms/components/CopyContent.vue
+++ b/client/components/open/forms/components/CopyContent.vue
@@ -6,7 +6,7 @@
-
+
-
diff --git a/client/components/open/forms/components/FormUrlPrefill.vue b/client/components/open/forms/components/FormUrlPrefill.vue
index 46bcbab..18d2c16 100644
--- a/client/components/open/forms/components/FormUrlPrefill.vue
+++ b/client/components/open/forms/components/FormUrlPrefill.vue
@@ -17,72 +17,50 @@
-
diff --git a/client/components/pages/forms/show/EmbedFormAsPopupModal.vue b/client/components/pages/forms/show/EmbedFormAsPopupModal.vue
index 63317c5..28c3f4e 100644
--- a/client/components/pages/forms/show/EmbedFormAsPopupModal.vue
+++ b/client/components/pages/forms/show/EmbedFormAsPopupModal.vue
@@ -59,7 +59,7 @@
-
+
@@ -101,99 +101,87 @@
-
diff --git a/client/components/pages/forms/show/ExtraMenu.vue b/client/components/pages/forms/show/ExtraMenu.vue
index 3aa72ef..fbf5b15 100644
--- a/client/components/pages/forms/show/ExtraMenu.vue
+++ b/client/components/pages/forms/show/ExtraMenu.vue
@@ -138,70 +138,51 @@
-
diff --git a/client/pages/templates/[slug].vue b/client/pages/templates/[slug].vue
index a33d151..4e768fe 100644
--- a/client/pages/templates/[slug].vue
+++ b/client/pages/templates/[slug].vue
@@ -205,6 +205,7 @@ defineRouteRules({
prerender: true
})
+const { copy } = useClipboard()
const authStore = useAuthStore()
const templatesStore = useTemplatesStore()
@@ -255,13 +256,7 @@ const cleanQuotes = (str) => {
}
const copyTemplateUrl = () => {
- const str = template.value.share_url
- const el = document.createElement('textarea')
- el.value = str
- document.body.appendChild(el)
- el.select()
- document.execCommand('copy')
- document.body.removeChild(el)
+ copy(template.value.share_url)
useAlert().success('Copied!')
}