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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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