mirror of
https://github.com/flarum/core.git
synced 2025-08-02 22:47:33 +02:00
Change fa icon prefix to fas
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
"flarum-extension": {
|
"flarum-extension": {
|
||||||
"title": "Flags",
|
"title": "Flags",
|
||||||
"icon": {
|
"icon": {
|
||||||
"name": "fa fa-flag",
|
"name": "fas fa-flag",
|
||||||
"backgroundColor": "#D659B5",
|
"backgroundColor": "#D659B5",
|
||||||
"color": "#fff"
|
"color": "#fff"
|
||||||
}
|
}
|
||||||
|
@@ -9,7 +9,7 @@ app.initializers.add('flarum-flags', () => {
|
|||||||
|
|
||||||
extend(PermissionGrid.prototype, 'moderateItems', items => {
|
extend(PermissionGrid.prototype, 'moderateItems', items => {
|
||||||
items.add('viewFlags', {
|
items.add('viewFlags', {
|
||||||
icon: 'fa fa-flag',
|
icon: 'fas fa-flag',
|
||||||
label: app.translator.trans('flarum-flags.admin.permissions.view_flags_label'),
|
label: app.translator.trans('flarum-flags.admin.permissions.view_flags_label'),
|
||||||
permission: 'discussion.viewFlags'
|
permission: 'discussion.viewFlags'
|
||||||
}, 65);
|
}, 65);
|
||||||
@@ -17,7 +17,7 @@ app.initializers.add('flarum-flags', () => {
|
|||||||
|
|
||||||
extend(PermissionGrid.prototype, 'replyItems', items => {
|
extend(PermissionGrid.prototype, 'replyItems', items => {
|
||||||
items.add('flagPosts', {
|
items.add('flagPosts', {
|
||||||
icon: 'fa fa-flag',
|
icon: 'fas fa-flag',
|
||||||
label: app.translator.trans('flarum-flags.admin.permissions.flag_posts_label'),
|
label: app.translator.trans('flarum-flags.admin.permissions.flag_posts_label'),
|
||||||
permission: 'discussion.flagPosts'
|
permission: 'discussion.flagPosts'
|
||||||
}, 70);
|
}, 70);
|
||||||
|
@@ -10,7 +10,7 @@ export default function() {
|
|||||||
if (post.isHidden() || post.contentType() !== 'comment' || !post.canFlag() || post.user() === app.session.user) return;
|
if (post.isHidden() || post.contentType() !== 'comment' || !post.canFlag() || post.user() === app.session.user) return;
|
||||||
|
|
||||||
items.add('flag',
|
items.add('flag',
|
||||||
<Button icon="fa fa-flag" onclick={() => app.modal.show(new FlagPostModal({post}))}>{app.translator.trans('flarum-flags.forum.post_controls.flag_button')}</Button>
|
<Button icon="fas fa-flag" onclick={() => app.modal.show(new FlagPostModal({post}))}>{app.translator.trans('flarum-flags.forum.post_controls.flag_button')}</Button>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@@ -37,7 +37,7 @@ export default class FlagList extends Component {
|
|||||||
if (!isInitialized) $(element).on('click', () => app.cache.flagIndex = post);
|
if (!isInitialized) $(element).on('click', () => app.cache.flagIndex = post);
|
||||||
}}>
|
}}>
|
||||||
{avatar(post.user())}
|
{avatar(post.user())}
|
||||||
{icon('fa fa-flag', {className: 'Notification-icon'})}
|
{icon('fas fa-flag', {className: 'Notification-icon'})}
|
||||||
<span className="Notification-content">
|
<span className="Notification-content">
|
||||||
{app.translator.trans('flarum-flags.forum.flagged_posts.item_text', {username: username(post.user()), em: <em/>, discussion: post.discussion().title()})}
|
{app.translator.trans('flarum-flags.forum.flagged_posts.item_text', {username: username(post.user()), em: <em/>, discussion: post.discussion().title()})}
|
||||||
</span>
|
</span>
|
||||||
|
@@ -5,7 +5,7 @@ import FlagList from 'flarum/flags/components/FlagList';
|
|||||||
export default class FlagsDropdown extends NotificationsDropdown {
|
export default class FlagsDropdown extends NotificationsDropdown {
|
||||||
static initProps(props) {
|
static initProps(props) {
|
||||||
props.label = props.label || app.translator.trans('flarum-flags.forum.flagged_posts.tooltip');
|
props.label = props.label || app.translator.trans('flarum-flags.forum.flagged_posts.tooltip');
|
||||||
props.icon = props.icon || 'fa fa-flag';
|
props.icon = props.icon || 'fas fa-flag';
|
||||||
|
|
||||||
super.initProps(props);
|
super.initProps(props);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user