From ff508ed75ffec97dd5239787c7ed3340568142f4 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 23 Jan 2017 14:34:06 -0500 Subject: [PATCH] UX: red notification of flags or pending approvals opens hamburger menu instead of linking to flags page --- app/assets/javascripts/discourse/widgets/header.js.es6 | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/header.js.es6 b/app/assets/javascripts/discourse/widgets/header.js.es6 index fe6ea451dda..8dbb00349ab 100644 --- a/app/assets/javascripts/discourse/widgets/header.js.es6 +++ b/app/assets/javascripts/discourse/widgets/header.js.es6 @@ -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); } });