mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 10:14:16 +08:00
Change fa icon prefix to fas
This commit is contained in:
parent
7e4e38bb74
commit
f1eefe7bf6
|
@ -29,7 +29,7 @@
|
|||
"flarum-extension": {
|
||||
"title": "Suspend",
|
||||
"icon": {
|
||||
"name": "fa fa-ban",
|
||||
"name": "fas fa-ban",
|
||||
"backgroundColor": "#ddd",
|
||||
"color": "#666"
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
});
|
||||
|
|
|
@ -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')
|
||||
}));
|
||||
|
|
Loading…
Reference in New Issue
Block a user