mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
Admin js changes for admin UX redesign
This commit is contained in:
parent
fba1aea032
commit
418829d689
|
@ -3,11 +3,11 @@ import app from 'flarum/app';
|
|||
import PermissionGrid from 'flarum/components/PermissionGrid';
|
||||
|
||||
app.initializers.add('flarum-likes', () => {
|
||||
extend(PermissionGrid.prototype, 'replyItems', items => {
|
||||
items.add('likePosts', {
|
||||
app.extensionData
|
||||
.for('flarum-likes')
|
||||
.registerPermission({
|
||||
icon: 'far fa-thumbs-up',
|
||||
label: app.translator.trans('flarum-likes.admin.permissions.like_posts_label'),
|
||||
permission: 'discussion.likePosts'
|
||||
});
|
||||
});
|
||||
}, 'reply');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user