mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 11:14:44 +08:00
DEV: Allow replacing share icons separately (#14774)
This commit is contained in:
@ -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",
|
||||||
|
@ -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) {
|
||||||
|
@ -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,
|
||||||
|
Reference in New Issue
Block a user