mirror of https://github.com/status-im/consul.git
ui: Remove ghost healthcheck from the service instance healthcheck list (#9220)
* ui: Fixup service instance healthcheck list not to show ghost check If the proxy is undefined, then an undefined vaule is appended to the list of checks * There are only 6 checks in the mocks so only expect 6
This commit is contained in:
parent
b2a6b9d5c7
commit
8a5670d7d5
|
@ -1,9 +1,10 @@
|
|||
<div class="tab-section">
|
||||
<div role="tabpanel">
|
||||
{{#if (gt item.Checks.length 0) }}
|
||||
{{#let (append item.Checks (or proxy.Checks (array))) as |checks|}}
|
||||
{{#if (gt checks.length 0) }}
|
||||
<section data-test-checks>
|
||||
<HealthcheckList
|
||||
@items={{sort-by (comparator 'check' 'Status:asc') (append item.Checks proxy.Checks)}}
|
||||
@items={{sort-by (comparator 'check' 'Status:asc') checks}}
|
||||
@exposed={{proxyMeta.ServiceProxy.Expose.Checks}}
|
||||
/>
|
||||
</section>
|
||||
|
@ -16,5 +17,6 @@
|
|||
</BlockSlot>
|
||||
</EmptyState>
|
||||
{{/if}}
|
||||
{{/let}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -65,7 +65,7 @@ Feature: dc / services / instances / show: Show Service Instance
|
|||
|
||||
And I don't see upstreams on the tabs
|
||||
And I see healthChecksIsSelected on the tabs
|
||||
And I see 7 of the checks object
|
||||
And I see 6 of the checks object
|
||||
|
||||
When I click tags&Meta on the tabs
|
||||
And I see tags&MetaIsSelected on the tabs
|
||||
|
|
Loading…
Reference in New Issue