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