1
0
mirror of https://github.com/flarum/core.git synced 2025-07-29 04:30:56 +02:00
Files
php-flarum/extensions/suspend/js/src/forum/components/UserUnsuspendedNotification.js
David Sevilla Martín ea28537b76 Fix the translator not being used properly in the notifications (#20)
* Fix the translator not being used properly

* fix weird indentation thing
2018-07-21 08:53:19 +09:30

22 lines
550 B
JavaScript

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() {
return 'ban';
}
href() {
return app.route.user(this.props.notification.subject());
}
content() {
const notification = this.props.notification;
return app.translator.trans('flarum-suspend.forum.notifications.user_unsuspended_text', {
user: notification.sender(),
});
}
}