From 86e964a2743f5f1f058ecb62a18c7d3c93bff4ea Mon Sep 17 00:00:00 2001
From: Corentin THOMASSET <corentin.thomasset74@gmail.com>
Date: Thu, 10 Aug 2023 00:07:44 +0200
Subject: fix(copy): prevent shorthand copy if source is present in useCopy
 (#559)

* fix(copy): prevent shorthand copy if source is present in useCopy

* refactor(copy): normalized copy usage
---
 src/tools/slugify-string/slugify-string.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/tools/slugify-string/slugify-string.vue')

diff --git a/src/tools/slugify-string/slugify-string.vue b/src/tools/slugify-string/slugify-string.vue
index 9156b79..f7666e3 100644
--- a/src/tools/slugify-string/slugify-string.vue
+++ b/src/tools/slugify-string/slugify-string.vue
@@ -15,7 +15,7 @@ const { copy } = useCopy({ source: slug, text: 'Slug copied to clipboard' });
     <c-input-text :value="slug" multiline readonly placeholder="You slug will be generated here (ex: my-file-path)" label="Your slug" mb-5 />
 
     <div flex justify-center>
-      <c-button :disabled="slug.length === 0" @click="copy">
+      <c-button :disabled="slug.length === 0" @click="copy()">
         Copy slug
       </c-button>
     </div>
-- 
cgit v1.2.3

