Adapt to FontAwesome v5.0.6 icon name changes (#14)

This commit is contained in:
AFR 2018-02-24 05:47:15 +07:00 committed by Franz Liedke
parent 8cbceb8d96
commit f25cf83e9b
5 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@
"flarum-extension": {
"title": "Likes",
"icon": {
"name": "thumbs-o-up",
"name": "far fa-thumbs-up",
"backgroundColor": "#3A649D",
"color": "#fff"
}

View File

@ -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'
});

View File

@ -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)

View File

@ -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() {

View File

@ -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')
});
});