mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 22:26:26 +08:00
FIX: uses translatedTitle to check validity of topic footer btn (#7472)
This commit is contained in:
parent
35212036f2
commit
e696903c31
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user