diff --git a/js/dashboard.js b/js/dashboard.js index eb043de..8951faa 100644 --- a/js/dashboard.js +++ b/js/dashboard.js @@ -54,7 +54,8 @@ config.blocking_value = suffix(config.releases, "+"); var data = { nominations: [], untriaged: [], - blocking: [] + blocking: [], + blockers: [] }; // Initially hide the body and fade it in when we get some data to show. @@ -205,7 +206,7 @@ function refresh() { } $("li#blockers").empty().append("
Blockers: " + formatCounts(null, config.blocking_value, null, data.blocking) + - "
").append(formatComponents(data.blocking)); + "").append(formatStatus(data.blockers)).append(formatComponents(data.blocking)); } function update() { @@ -219,6 +220,9 @@ function update() { group(all().blocking(config.nomination_value).open(), [config.flag, "assigned_to", "last_change_time"]).then(function (counts) { data.nominations = counts; }), + group(all().blocking(config.blocking_value).open(), [config.flag, "assigned_to", "last_change_time"]).then(function (counts) { + data.blockers = counts; + }), group(all().blocking(config.blocking_value).open(), ["component", config.flag, "assigned_to", "last_change_time"]).then(function (counts) { data.untriaged = ("General" in counts) ? counts.General : null; data.blocking = without(counts, "General");