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

This commit is contained in:
Joffrey JAFFEUX
2019-05-02 20:56:27 +02:00
committed by GitHub
parent 35212036f2
commit e696903c31

View File

@@ -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