From e696903c31bec4243bd00124ed3177f3fbcaa36b Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 2 May 2019 20:56:27 +0200 Subject: [PATCH] FIX: uses translatedTitle to check validity of topic footer btn (#7472) --- .../discourse/lib/register-topic-footer-button.js.es6 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 553b6bdb97..d74e71695e 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