diff --git a/framework/core/js/src/forum/components/Notification.js b/framework/core/js/src/forum/components/Notification.js index e9ce7092c..32ba8bb6c 100644 --- a/framework/core/js/src/forum/components/Notification.js +++ b/framework/core/js/src/forum/components/Notification.js @@ -4,6 +4,7 @@ import icon from '../../common/helpers/icon'; import humanTime from '../../common/helpers/humanTime'; import Button from '../../common/components/Button'; import Link from '../../common/components/Link'; +import classList from '../../common/utils/classList'; /** * The `Notification` component abstract displays a single notification. @@ -22,27 +23,31 @@ export default class Notification extends Component { return ( - {!notification.isRead() && - Button.component({ - className: 'Notification-action Button Button--icon Button--link', - icon: 'fas fa-check', - title: app.translator.trans('core.forum.notifications.mark_as_read_tooltip'), - onclick: (e) => { + {avatar(notification.fromUser())} + {icon(this.icon(), { className: 'Notification-icon' })} + + {this.content()} + + {humanTime(notification.createdAt())} + + {!notification.isRead() && ( +