mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #5715 from jjaffeux/remove-title-user-notifications
FIX: remove unneeded and uninformative title on user notifications list
This commit is contained in:
@@ -101,10 +101,8 @@ createWidget('notification-item', {
|
||||
|
||||
let { data } = attrs;
|
||||
let infoKey = notName === 'custom' ? data.message : notName;
|
||||
let title = I18n.t(`notifications.alt.${infoKey}`);
|
||||
let icon = iconNode(`notification.${infoKey}`, { title });
|
||||
|
||||
let text = emojiUnescape(this.text(notificationType, notName));
|
||||
let icon = iconNode(`notification.${infoKey}`);
|
||||
|
||||
// We can use a `<p>` tag here once other languages have fixed their HTML
|
||||
// translations.
|
||||
@@ -113,7 +111,7 @@ createWidget('notification-item', {
|
||||
let contents = [ icon, html ];
|
||||
|
||||
const href = this.url();
|
||||
return href ? h('a', { attributes: { href, title, 'data-auto-route': true } }, contents) : contents;
|
||||
return href ? h('a', { attributes: { href, 'data-auto-route': true } }, contents) : contents;
|
||||
},
|
||||
|
||||
click(e) {
|
||||
|
||||
Reference in New Issue
Block a user