1448, use clipboard controller

This commit is contained in:
Ahmed Ejaz 2023-11-12 16:05:17 +05:00 committed by Andreas Nedbal
parent 03d41ec8b1
commit 198b84efe1
1 changed files with 1 additions and 1 deletions

View File

@ -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) } }