From 19b1448d7664d44ab8c1abb29e35d8458e23d772 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 15 Sep 2017 13:55:08 -0400 Subject: [PATCH] FIX: Missing icon in notifications for solved --- .../discourse/initializers/extend-for-solved-button.js.es6 | 5 +++++ config/locales/client.en.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/assets/javascripts/discourse/initializers/extend-for-solved-button.js.es6 b/assets/javascripts/discourse/initializers/extend-for-solved-button.js.es6 index 5d16b57..e484922 100644 --- a/assets/javascripts/discourse/initializers/extend-for-solved-button.js.es6 +++ b/assets/javascripts/discourse/initializers/extend-for-solved-button.js.es6 @@ -163,6 +163,7 @@ function initializeWithApi(api) { } }); } + } export default { @@ -212,5 +213,9 @@ export default { }); withPluginApi('0.1', initializeWithApi); + + withPluginApi('0.8.10', api => { + api.replaceIcon('notification.solved.accepted_notification', 'check-square'); + }); } }; diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 668a516..2d61ab0 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -1,5 +1,10 @@ en: js: + notifications: + alt: + solved: + accepted_notification: "accepted" + solved: title: "Solved" allow_accepted_answers: "Allow topic owner and staff to mark a reply as the solution"