FIX: uses translatedTitle to check validity of topic footer btn (#7472)

FIX: uses translatedTitle to check validity of topic footer btn (#7472)

diff --git a/app/assets/javascripts/discourse/lib/register-topic-footer-button.js.es6 b/app/assets/javascripts/discourse/lib/register-topic-footer-button.js.es6
index 553b6bd..d74e716 100644
--- a/app/assets/javascripts/discourse/lib/register-topic-footer-button.js.es6
+++ b/app/assets/javascripts/discourse/lib/register-topic-footer-button.js.es6
@@ -43,7 +43,11 @@ export function registerTopicFooterButton(button) {
     return;
   }
 
-  if (!normalizedButton.icon && !normalizedButton.title) {
+  if (
+    !normalizedButton.icon &&
+    !normalizedButton.title &&
+    !normalizedButton.translatedTitle
+  ) {
     Ember.error(
       `Attempted to register a topic button: ${
         button.id

GitHub sha: e696903c

1 Like