UX: red notification of flags or pending approvals opens hamburger menu instead of linking to flags page

This commit is contained in:
Neil Lalonde 2017-01-23 14:34:06 -05:00
parent 7e52d29a5b
commit ff508ed75f
1 changed files with 3 additions and 6 deletions

View File

@ -114,12 +114,9 @@ createWidget('header-icons', {
action: 'toggleHamburger',
contents() {
if (!attrs.flagCount) { return; }
return this.attach('link', {
href: Discourse.getURL('/admin/flags/active'),
title: 'notifications.total_flagged',
rawLabel: attrs.flagCount,
className: 'badge-notification flagged-posts'
});
return h('div.badge-notification.flagged-posts', { attributes: {
title: I18n.t('notifications.total_flagged')
} }, attrs.flagCount);
}
});