mirror of https://github.com/status-im/consul.git
ui: Show the No Dependencies message when a Topology has no streams (#9413)
Also changes the upstreams docs link
This commit is contained in:
parent
1655387817
commit
dd2b3919e9
|
@ -1,24 +1,7 @@
|
||||||
<EventSource @src={{topology}} />
|
<EventSource @src={{topology}} />
|
||||||
<div id="topology" class="tab-section">
|
<div class="tab-section">
|
||||||
<div role="tabpanel">
|
<div role="tabpanel">
|
||||||
{{#if topology.FilteredByACLs}}
|
{{#if (and (eq topology.Upstreams.length 0) (eq topology.Downstreams.length 0))}}
|
||||||
<TopologyMetrics::Notice::LimitedAccess />
|
|
||||||
{{/if}}
|
|
||||||
{{#if topology}}
|
|
||||||
<TopologyMetrics
|
|
||||||
@nspace={{nspace}}
|
|
||||||
@dc={{dc.Name}}
|
|
||||||
@service={{items.firstObject}}
|
|
||||||
@topology={{topology}}
|
|
||||||
@metricsHref={{render-template urls.service (hash
|
|
||||||
Datacenter=dc.Name
|
|
||||||
Service=items.firstObject
|
|
||||||
)}}
|
|
||||||
@isRemoteDC={{isRemoteDC}}
|
|
||||||
@hasMetricsProvider={{hasMetricsProvider}}
|
|
||||||
@oncreate={{route-action 'createIntention'}}
|
|
||||||
/>
|
|
||||||
{{else}}
|
|
||||||
<EmptyState>
|
<EmptyState>
|
||||||
<BlockSlot @name="header">
|
<BlockSlot @name="header">
|
||||||
<h2>
|
<h2>
|
||||||
|
@ -32,10 +15,27 @@
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
<BlockSlot @name="actions">
|
<BlockSlot @name="actions">
|
||||||
<li class="docs-link">
|
<li class="docs-link">
|
||||||
<a href="{{env 'CONSUL_DOCS_URL'}}/connect/registration/service-registration#upstream-configuration-reference" rel="noopener noreferrer" target="_blank">Documentation on upstreams</a>
|
<a href="{{env 'CONSUL_DOCS_URL'}}/connect/registration/service-registration#complete-configuration-example" rel="noopener noreferrer" target="_blank">Documentation on upstreams</a>
|
||||||
</li>
|
</li>
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
</EmptyState>
|
</EmptyState>
|
||||||
|
{{else}}
|
||||||
|
{{#if topology.FilteredByACLs}}
|
||||||
|
<TopologyMetrics::Notice::LimitedAccess />
|
||||||
|
{{/if}}
|
||||||
|
<TopologyMetrics
|
||||||
|
@nspace={{nspace}}
|
||||||
|
@dc={{dc.Name}}
|
||||||
|
@service={{items.firstObject}}
|
||||||
|
@topology={{topology}}
|
||||||
|
@metricsHref={{render-template urls.service (hash
|
||||||
|
Datacenter=dc.Name
|
||||||
|
Service=items.firstObject
|
||||||
|
)}}
|
||||||
|
@isRemoteDC={{isRemoteDC}}
|
||||||
|
@hasMetricsProvider={{hasMetricsProvider}}
|
||||||
|
@oncreate={{route-action 'createIntention'}}
|
||||||
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue