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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -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",

View File

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

View File

@ -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,