mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: red notification of flags or pending approvals opens hamburger menu instead of linking to flags page
This commit is contained in:
@@ -114,12 +114,9 @@ createWidget('header-icons', {
|
|||||||
action: 'toggleHamburger',
|
action: 'toggleHamburger',
|
||||||
contents() {
|
contents() {
|
||||||
if (!attrs.flagCount) { return; }
|
if (!attrs.flagCount) { return; }
|
||||||
return this.attach('link', {
|
return h('div.badge-notification.flagged-posts', { attributes: {
|
||||||
href: Discourse.getURL('/admin/flags/active'),
|
title: I18n.t('notifications.total_flagged')
|
||||||
title: 'notifications.total_flagged',
|
} }, attrs.flagCount);
|
||||||
rawLabel: attrs.flagCount,
|
|
||||||
className: 'badge-notification flagged-posts'
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user