Admin js changes for admin UX redesign

This commit is contained in:
Alexander Skvortsov 2020-11-25 01:15:37 -05:00
parent fba1aea032
commit 418829d689

View File

@ -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');
});