From dcbb5ee03b42dee4ecc31900ffc55aef69d70534 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Tue, 3 Mar 2020 10:13:35 -0800 Subject: [PATCH] Always show the unresolved issue count in the footer if any exist --- modules/ui/issues_info.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/modules/ui/issues_info.js b/modules/ui/issues_info.js index 0874d4b06..6d97a4cec 100644 --- a/modules/ui/issues_info.js +++ b/modules/ui/issues_info.js @@ -25,17 +25,16 @@ export function uiIssuesInfo(context) { var shownItems = []; + var liveIssues = context.validator().getIssues({ + what: context.storage('validate-what') || 'edited', + where: context.storage('validate-where') || 'all' + }); + if (liveIssues.length) { + warningsItem.count = liveIssues.length; + shownItems.push(warningsItem); + } + if (context.storage('validate-what') === 'all') { - - var liveIssues = context.validator().getIssues({ - what: context.storage('validate-what') || 'edited', - where: context.storage('validate-where') || 'all' - }); - if (liveIssues.length) { - warningsItem.count = liveIssues.length; - shownItems.push(warningsItem); - } - var resolvedIssues = context.validator().getResolvedIssues(); if (resolvedIssues.length) { resolvedItem.count = resolvedIssues.length;