Commit 6fb66321 authored by Filipa Lacerda's avatar Filipa Lacerda

Adds counters to badges

parent d3732b55
...@@ -26,7 +26,12 @@ const CommitPipelinesStoreWithTimeAgo = require('../commit/pipelines/pipelines_s ...@@ -26,7 +26,12 @@ const CommitPipelinesStoreWithTimeAgo = require('../commit/pipelines/pipelines_s
apiScope: 'all', apiScope: 'all',
pageInfo: {}, pageInfo: {},
pagenum: 1, pagenum: 1,
count: {}, count: {
all: 0,
pending: 0,
running: 0,
finished: 0,
},
pageRequest: false, pageRequest: false,
hasError: false, hasError: false,
pipelinesEmptyStateSVG, pipelinesEmptyStateSVG,
...@@ -127,6 +132,7 @@ const CommitPipelinesStoreWithTimeAgo = require('../commit/pipelines/pipelines_s ...@@ -127,6 +132,7 @@ const CommitPipelinesStoreWithTimeAgo = require('../commit/pipelines/pipelines_s
All All
</a> </a>
<span class="badge js-totalbuilds-count"> <span class="badge js-totalbuilds-count">
{{count.all}}
</span> </span>
</li> </li>
<li <li
...@@ -135,25 +141,42 @@ const CommitPipelinesStoreWithTimeAgo = require('../commit/pipelines/pipelines_s ...@@ -135,25 +141,42 @@ const CommitPipelinesStoreWithTimeAgo = require('../commit/pipelines/pipelines_s
<a :href="pendingPath"> <a :href="pendingPath">
Pending Pending
</a> </a>
<span class="badge"></span>
<span class="badge">
{{count.pending}}
</span>
</li> </li>
<li <li
class="js-pipelines-tab-running" class="js-pipelines-tab-running"
:class="{ 'active': scope === 'running'}"> :class="{ 'active': scope === 'running'}">
<a :href="runningPath">Running</a>
<span class="badge"></span> <a :href="runningPath">
Running
</a>
<span class="badge">
{{count.running}}
</span>
</li> </li>
<li <li
class="js-pipelines-tab-finished" class="js-pipelines-tab-finished"
:class="{ 'active': scope === 'finished'}"> :class="{ 'active': scope === 'finished'}">
<a :href="finishedPath">Finished</a>
<span class="badge"></span> <a :href="finishedPath">
Finished
</a>
<span class="badge">
{{count.finished}}
</span>
</li> </li>
<li <li
class="js-pipelines-tab-branches" class="js-pipelines-tab-branches"
:class="{ 'active': scope === 'branches'}"> :class="{ 'active': scope === 'branches'}">
<a :href="branchesPath">Branches</a> <a :href="branchesPath">Branches</a>
</li> </li>
<li <li
class="js-pipelines-tab-tags" class="js-pipelines-tab-tags"
:class="{ 'active': scope === 'tags'}"> :class="{ 'active': scope === 'tags'}">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment