From bf0c055a9a610f6638659f05a4ab34ce407530bf Mon Sep 17 00:00:00 2001 From: Kris Date: Wed, 22 Apr 2020 12:29:27 -0400 Subject: [PATCH] UX: add comment-plus icon for reopening topics --- .../javascripts/discourse/widgets/post-small-action.js | 6 +++--- .../javascripts/discourse/widgets/topic-admin-menu.js | 4 ++-- lib/svg_sprite/svg_sprite.rb | 1 + vendor/assets/svg-icons/discourse-additional.svg | 8 ++++++-- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/post-small-action.js b/app/assets/javascripts/discourse/widgets/post-small-action.js index 19e4531259e..b456d3d0395 100644 --- a/app/assets/javascripts/discourse/widgets/post-small-action.js +++ b/app/assets/javascripts/discourse/widgets/post-small-action.js @@ -33,9 +33,9 @@ export function actionDescription(actionCode, createdAt, username) { const icons = { "closed.enabled": "discourse-comment-slash", - "closed.disabled": "discourse-comment", + "closed.disabled": "discourse-comment-plus", "autoclosed.enabled": "discourse-comment-slash", - "autoclosed.disabled": "discourse-comment", + "autoclosed.disabled": "discourse-comment-plus", "archived.enabled": "folder", "archived.disabled": "folder-open", "pinned.enabled": "thumbtack", @@ -52,7 +52,7 @@ const icons = { user_left: "minus-circle", removed_user: "minus-circle", removed_group: "minus-circle", - public_topic: "discourse-comment", + public_topic: "discourse-comment-plus", private_topic: "envelope", autobumped: "hand-point-right" }; diff --git a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js index edf9d4a14a6..904269d5ba3 100644 --- a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js +++ b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js @@ -165,7 +165,7 @@ export default createWidget("topic-admin-menu", { className: "topic-admin-open", buttonClass: "btn-default", action: "toggleClosed", - icon: "discourse-comment", + icon: "discourse-comment-plus", label: "actions.open" }); } else { @@ -239,7 +239,7 @@ export default createWidget("topic-admin-menu", { action: isPrivateMessage ? "convertToPublicTopic" : "convertToPrivateMessage", - icon: isPrivateMessage ? "discourse-comment" : "envelope", + icon: isPrivateMessage ? "discourse-comment-plus" : "envelope", label: isPrivateMessage ? "actions.make_public" : "actions.make_private" diff --git a/lib/svg_sprite/svg_sprite.rb b/lib/svg_sprite/svg_sprite.rb index 4fdc3e5a87e..d28044c96a7 100644 --- a/lib/svg_sprite/svg_sprite.rb +++ b/lib/svg_sprite/svg_sprite.rb @@ -63,6 +63,7 @@ module SvgSprite "discourse-bell-slash", "discourse-compress", "discourse-comment", + "discourse-comment-plus", "discourse-comment-slash", "discourse-expand", "download", diff --git a/vendor/assets/svg-icons/discourse-additional.svg b/vendor/assets/svg-icons/discourse-additional.svg index e3adf58e0c2..e1d9f8dbf3b 100644 --- a/vendor/assets/svg-icons/discourse-additional.svg +++ b/vendor/assets/svg-icons/discourse-additional.svg @@ -32,8 +32,12 @@ Additional SVG icons - + - + + + + +