Make copy-to-clipboard a button instead of a link

This commit is contained in:
Andreas Nedbal 2023-12-09 18:25:23 +01:00 committed by Andreas Nedbal
parent a27e995179
commit ed500da939
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@
%a.btn.btn-primary.mb-1{ href: "#", data: { inbox_sharing_target: "telegram" }, target: "_blank" }
%i.fab.fa-telegram.fa-fw
Telegram
%a.btn.btn-primary{ data: { controller: :clipboard, action: "clipboard#copy", inbox_sharing_target: "clipboard" } }
%button.btn.btn-primary.mb-1{ data: { controller: :clipboard, action: "clipboard#copy", inbox_sharing_target: "clipboard" } }
%i.fa.fa-fw.fa-solid.fa-copy
= t("actions.share.copy")
%button.btn.btn-primary.mb-1{ data: { controller: "share", action: "share#share", inbox_sharing_target: "other" } }