DEV: Allow replacing share icons separately (#14774)
This commit is contained in:
parent
e3e0d025ea
commit
f6a3c22a89
|
@ -20,6 +20,8 @@ const REPLACEMENTS = {
|
|||
"d-drop-collapsed": "caret-right",
|
||||
"d-unliked": "far-heart",
|
||||
"d-liked": "heart",
|
||||
"d-post-share": "link",
|
||||
"d-topic-share": "link",
|
||||
"notification.mentioned": "at",
|
||||
"notification.group_mentioned": "users",
|
||||
"notification.quoted": "quote-right",
|
||||
|
|
|
@ -14,7 +14,7 @@ export default {
|
|||
initialize() {
|
||||
registerTopicFooterButton({
|
||||
id: "share-and-invite",
|
||||
icon: "link",
|
||||
icon: "d-topic-share",
|
||||
priority: SHARE_PRIORITY,
|
||||
label() {
|
||||
if (!this.get("topic.isPrivateMessage") || this.site.mobileView) {
|
||||
|
|
|
@ -284,7 +284,7 @@ registerButton("share", (attrs) => {
|
|||
action: "share",
|
||||
className: "share",
|
||||
title: "post.controls.share",
|
||||
icon: "link",
|
||||
icon: "d-post-share",
|
||||
data: {
|
||||
"share-url": attrs.shareUrl,
|
||||
"post-number": attrs.post_number,
|
||||
|
|
Loading…
Reference in New Issue