mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Adapt to FontAwesome v5.0.6 icon name changes (#14)
This commit is contained in:
parent
8cbceb8d96
commit
f25cf83e9b
|
@ -29,7 +29,7 @@
|
|||
"flarum-extension": {
|
||||
"title": "Likes",
|
||||
"icon": {
|
||||
"name": "thumbs-o-up",
|
||||
"name": "far fa-thumbs-up",
|
||||
"backgroundColor": "#3A649D",
|
||||
"color": "#fff"
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ import PermissionGrid from 'flarum/components/PermissionGrid';
|
|||
app.initializers.add('flarum-likes', () => {
|
||||
extend(PermissionGrid.prototype, 'replyItems', items => {
|
||||
items.add('likePosts', {
|
||||
icon: 'thumbs-o-up',
|
||||
icon: 'far fa-thumbs-up',
|
||||
label: app.translator.trans('flarum-likes.admin.permissions.like_posts_label'),
|
||||
permission: 'discussion.likePosts'
|
||||
});
|
||||
|
|
|
@ -46,7 +46,7 @@ export default function() {
|
|||
|
||||
items.add('liked', (
|
||||
<div className="Post-likedBy">
|
||||
{icon('thumbs-o-up')}
|
||||
{icon('far fa-thumbs-up')}
|
||||
{app.translator.transChoice('flarum-likes.forum.post.liked_by' + (likes[0] === app.session.user ? '_self' : '') + '_text', names.length, {
|
||||
count: names.length,
|
||||
users: punctuateSeries(names)
|
||||
|
|
|
@ -4,7 +4,7 @@ import punctuateSeries from 'flarum/helpers/punctuateSeries';
|
|||
|
||||
export default class PostLikedNotification extends Notification {
|
||||
icon() {
|
||||
return 'thumbs-o-up';
|
||||
return 'far fa-thumbs-up';
|
||||
}
|
||||
|
||||
href() {
|
||||
|
|
|
@ -20,7 +20,7 @@ app.initializers.add('flarum-likes', () => {
|
|||
extend(NotificationGrid.prototype, 'notificationTypes', function (items) {
|
||||
items.add('postLiked', {
|
||||
name: 'postLiked',
|
||||
icon: 'thumbs-o-up',
|
||||
icon: 'far fa-thumbs-up',
|
||||
label: app.translator.trans('flarum-likes.forum.settings.notify_post_liked_label')
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user