Browse Source

ui: Add services count to node listings (#8690)

pull/8700/head
Kenia 4 years ago committed by GitHub
parent
commit
ac54a791b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      ui-v2/app/components/consul-node-list/index.hbs

5
ui-v2/app/components/consul-node-list/index.hbs

@ -26,6 +26,11 @@
<BlockSlot @name="details">
{{#if (eq item.Address leader.Address)}}
<span class="leader" data-test-leader={{leader.Address}}>Leader</span>
{{/if}}
{{#if (gt item.Services.length 0)}}
<span>
{{item.Services.length}} {{pluralize item.Services.length 'Service' without-count=true}}
</span>
{{/if}}
<dl>
<dt>

Loading…
Cancel
Save