DEV: Allow replacing share icons separately (#14774)

This commit is contained in:
Penar Musaraj
2021-10-29 13:35:27 -04:00
committed by GitHub
parent e3e0d025ea
commit f6a3c22a89
3 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,8 @@ const REPLACEMENTS = {
"d-drop-collapsed": "caret-right", "d-drop-collapsed": "caret-right",
"d-unliked": "far-heart", "d-unliked": "far-heart",
"d-liked": "heart", "d-liked": "heart",
"d-post-share": "link",
"d-topic-share": "link",
"notification.mentioned": "at", "notification.mentioned": "at",
"notification.group_mentioned": "users", "notification.group_mentioned": "users",
"notification.quoted": "quote-right", "notification.quoted": "quote-right",

View File

@ -14,7 +14,7 @@ export default {
initialize() { initialize() {
registerTopicFooterButton({ registerTopicFooterButton({
id: "share-and-invite", id: "share-and-invite",
icon: "link", icon: "d-topic-share",
priority: SHARE_PRIORITY, priority: SHARE_PRIORITY,
label() { label() {
if (!this.get("topic.isPrivateMessage") || this.site.mobileView) { if (!this.get("topic.isPrivateMessage") || this.site.mobileView) {

View File

@ -284,7 +284,7 @@ registerButton("share", (attrs) => {
action: "share", action: "share",
className: "share", className: "share",
title: "post.controls.share", title: "post.controls.share",
icon: "link", icon: "d-post-share",
data: { data: {
"share-url": attrs.shareUrl, "share-url": attrs.shareUrl,
"post-number": attrs.post_number, "post-number": attrs.post_number,