From 198b84efe1dddd18081a4e72ccca96a7ff0bac0b Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Sun, 12 Nov 2023 16:05:17 +0500 Subject: [PATCH] 1448, use clipboard controller --- app/views/actions/_share.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/actions/_share.html.haml b/app/views/actions/_share.html.haml index 4e57c056..21dc689b 100644 --- a/app/views/actions/_share.html.haml +++ b/app/views/actions/_share.html.haml @@ -8,7 +8,7 @@ %a.dropdown-item{ href: telegram_share_url(answer), target: "_blank" } %i.fa.fa-fw.fa-telegram = t(".telegram") - %a.dropdown-item{ href: "#", data: { controller: :share, action: "share#copyToClipboard", share_copy_content_value: answer_copy_content(answer) } } + %a.dropdown-item{ href: "#", data: { controller: :clipboard, action: "clipboard#copy", clipboard_copy_value: prepare_tweet(answer) } } %i.fa.fa-fw.fa-solid.fa-copy = t(".copy") %a.dropdown-item{ href: "#", data: { controller: :share, action: "share#share", share_url_value: answer_share_url(answer) } }