Change fa icon prefix to fas

This commit is contained in:
Ammar Fadhlur Rahman 2018-05-10 15:05:23 +07:00
parent 7e4e38bb74
commit f1eefe7bf6
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@
"flarum-extension": {
"title": "Suspend",
"icon": {
"name": "fa fa-ban",
"name": "fas fa-ban",
"backgroundColor": "#ddd",
"color": "#666"
}

View File

@ -5,7 +5,7 @@ import PermissionGrid from 'flarum/components/PermissionGrid';
app.initializers.add('suspend', () => {
extend(PermissionGrid.prototype, 'moderateItems', items => {
items.add('suspendUsers', {
icon: 'fa fa-ban',
icon: 'fas fa-ban',
label: app.translator.trans('flarum-suspend.admin.permissions.suspend_users_label'),
permission: 'user.suspend'
});

View File

@ -16,7 +16,7 @@ app.initializers.add('flarum-suspend', () => {
if (user.canSuspend()) {
items.add('suspend', Button.component({
children: app.translator.trans('flarum-suspend.forum.user_controls.suspend_button'),
icon: 'fa fa-ban',
icon: 'fas fa-ban',
onclick: () => app.modal.show(new SuspendUserModal({user}))
}));
}
@ -27,7 +27,7 @@ app.initializers.add('flarum-suspend', () => {
if (new Date() < until) {
items.add('suspended', Badge.component({
icon: 'fa fa-ban',
icon: 'fas fa-ban',
type: 'suspended',
label: app.translator.trans('flarum-suspend.forum.user_badge.suspended_tooltip')
}));