mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 07:42:48 +08:00
Add namespacing for badges
- Adds a `lib.badge` namespace to match extension handling.
This commit is contained in:
parent
fc7db914db
commit
2903a7068c
|
@ -86,7 +86,7 @@ Object.assign(Discussion.prototype, {
|
|||
const items = new ItemList();
|
||||
|
||||
if (this.isHidden()) {
|
||||
items.add('hidden', <Badge type="hidden" icon="trash" label={app.translator.trans('core.lib.hidden_discussion_tooltip')}/>);
|
||||
items.add('hidden', <Badge type="hidden" icon="trash" label={app.translator.trans('core.lib.badge.hidden_discussion_tooltip')}/>);
|
||||
}
|
||||
|
||||
return items;
|
||||
|
|
Loading…
Reference in New Issue
Block a user