From aca910b70536550dc6257a17de7f765f2ff892c0 Mon Sep 17 00:00:00 2001 From: Clark Winkelmann Date: Thu, 19 Sep 2019 23:01:37 +0200 Subject: [PATCH 1/2] Fix user icon for FontAwesome 5 --- .../js/src/forum/components/UserSuspendedNotification.js | 2 +- .../js/src/forum/components/UserUnsuspendedNotification.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/suspend/js/src/forum/components/UserSuspendedNotification.js b/extensions/suspend/js/src/forum/components/UserSuspendedNotification.js index cb0f91895..189af9797 100644 --- a/extensions/suspend/js/src/forum/components/UserSuspendedNotification.js +++ b/extensions/suspend/js/src/forum/components/UserSuspendedNotification.js @@ -4,7 +4,7 @@ import humanTime from 'flarum/helpers/humanTime'; export default class UserSuspendedNotification extends Notification { icon() { - return 'ban'; + return 'fas fa-ban'; } href() { diff --git a/extensions/suspend/js/src/forum/components/UserUnsuspendedNotification.js b/extensions/suspend/js/src/forum/components/UserUnsuspendedNotification.js index 31bcb5ce1..7b451b8d9 100644 --- a/extensions/suspend/js/src/forum/components/UserUnsuspendedNotification.js +++ b/extensions/suspend/js/src/forum/components/UserUnsuspendedNotification.js @@ -4,7 +4,7 @@ import humanTime from 'flarum/helpers/humanTime'; export default class UserUnsuspendedNotification extends Notification { icon() { - return 'ban'; + return 'fas fa-ban'; } href() { From c25c46e280a371d413130e6652b4dec11b4da06f Mon Sep 17 00:00:00 2001 From: Clark Winkelmann Date: Thu, 19 Sep 2019 23:13:01 +0200 Subject: [PATCH 2/2] Removed unused imports --- .../js/src/forum/components/UserSuspendedNotification.js | 2 -- .../js/src/forum/components/UserUnsuspendedNotification.js | 2 -- 2 files changed, 4 deletions(-) diff --git a/extensions/suspend/js/src/forum/components/UserSuspendedNotification.js b/extensions/suspend/js/src/forum/components/UserSuspendedNotification.js index 189af9797..228f26778 100644 --- a/extensions/suspend/js/src/forum/components/UserSuspendedNotification.js +++ b/extensions/suspend/js/src/forum/components/UserSuspendedNotification.js @@ -1,6 +1,4 @@ import Notification from 'flarum/components/Notification'; -import username from 'flarum/helpers/username'; -import humanTime from 'flarum/helpers/humanTime'; export default class UserSuspendedNotification extends Notification { icon() { diff --git a/extensions/suspend/js/src/forum/components/UserUnsuspendedNotification.js b/extensions/suspend/js/src/forum/components/UserUnsuspendedNotification.js index 7b451b8d9..55ab43b16 100644 --- a/extensions/suspend/js/src/forum/components/UserUnsuspendedNotification.js +++ b/extensions/suspend/js/src/forum/components/UserUnsuspendedNotification.js @@ -1,6 +1,4 @@ import Notification from 'flarum/components/Notification'; -import username from 'flarum/helpers/username'; -import humanTime from 'flarum/helpers/humanTime'; export default class UserUnsuspendedNotification extends Notification { icon() {