mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 02:10:09 +08:00
Merge pull request #9 from afrastgeek/master
Change fa icon prefix to fas
This commit is contained in:
commit
27ea2f82f8
|
@ -29,7 +29,7 @@
|
|||
"flarum-extension": {
|
||||
"title": "Sticky",
|
||||
"icon": {
|
||||
"name": "fa fa-thumbtack",
|
||||
"name": "fas fa-thumbtack",
|
||||
"backgroundColor": "#D13E32",
|
||||
"color": "#fff"
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ import PermissionGrid from 'flarum/components/PermissionGrid';
|
|||
app.initializers.add('flarum-sticky', () => {
|
||||
extend(PermissionGrid.prototype, 'moderateItems', items => {
|
||||
items.add('sticky', {
|
||||
icon: 'fa fa-thumbtack',
|
||||
icon: 'fas fa-thumbtack',
|
||||
label: app.translator.trans('flarum-sticky.admin.permissions.sticky_discussions_label'),
|
||||
permission: 'discussion.sticky'
|
||||
}, 95);
|
||||
|
|
|
@ -8,7 +8,7 @@ export default function addStickyBadge() {
|
|||
badges.add('sticky', Badge.component({
|
||||
type: 'sticky',
|
||||
label: app.translator.trans('flarum-sticky.forum.badge.sticky_tooltip'),
|
||||
icon: 'fa fa-thumbtack'
|
||||
icon: 'fas fa-thumbtack'
|
||||
}), 10);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -8,7 +8,7 @@ export default function addStickyControl() {
|
|||
if (discussion.canSticky()) {
|
||||
items.add('sticky', Button.component({
|
||||
children: app.translator.trans(discussion.isSticky() ? 'flarum-sticky.forum.discussion_controls.unsticky_button' : 'flarum-sticky.forum.discussion_controls.sticky_button'),
|
||||
icon: 'fa fa-thumbtack',
|
||||
icon: 'fas fa-thumbtack',
|
||||
onclick: this.stickyAction.bind(discussion)
|
||||
}));
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ import EventPost from 'flarum/components/EventPost';
|
|||
|
||||
export default class DiscussionStickiedPost extends EventPost {
|
||||
icon() {
|
||||
return 'fa fa-thumbtack';
|
||||
return 'fas fa-thumbtack';
|
||||
}
|
||||
|
||||
descriptionKey() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user