mirror of https://github.com/hashicorp/consul
ui: Fix up erroneously placed conditional (#9447)
This meant that when where were no upstreams, no message would show telling you of that fact. This commit means an EmptyState will now show instead.pull/9445/head^2
parent
d32e7f0857
commit
d0ebb2b774
|
@ -22,31 +22,31 @@
|
||||||
searchproperty=(action (mut searchproperty) value="target.selectedItems")
|
searchproperty=(action (mut searchproperty) value="target.selectedItems")
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<DataCollection
|
|
||||||
@type="upstream-instance"
|
|
||||||
@sort={{sort}}
|
|
||||||
@filters={{filters}}
|
|
||||||
@search={{search}}
|
|
||||||
@items={{proxy.Service.Proxy.Upstreams}}
|
|
||||||
as |collection|>
|
|
||||||
<collection.Collection>
|
|
||||||
<Consul::UpstreamInstance::List
|
|
||||||
@items={{collection.items}}
|
|
||||||
@dc={{dc}}
|
|
||||||
@nspace={{nspace}}
|
|
||||||
/>
|
|
||||||
</collection.Collection>
|
|
||||||
<collection.Empty>
|
|
||||||
<EmptyState>
|
|
||||||
<BlockSlot @name="body">
|
|
||||||
<p>
|
|
||||||
This service has no upstreams{{#if (gt proxy.Service.Proxy.Upstreams.length 0)}} matching that search{{/if}}.
|
|
||||||
</p>
|
|
||||||
</BlockSlot>
|
|
||||||
</EmptyState>
|
|
||||||
</collection.Empty>
|
|
||||||
</DataCollection>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
<DataCollection
|
||||||
|
@type="upstream-instance"
|
||||||
|
@sort={{sort}}
|
||||||
|
@filters={{filters}}
|
||||||
|
@search={{search}}
|
||||||
|
@items={{proxy.Service.Proxy.Upstreams}}
|
||||||
|
as |collection|>
|
||||||
|
<collection.Collection>
|
||||||
|
<Consul::UpstreamInstance::List
|
||||||
|
@items={{collection.items}}
|
||||||
|
@dc={{dc}}
|
||||||
|
@nspace={{nspace}}
|
||||||
|
/>
|
||||||
|
</collection.Collection>
|
||||||
|
<collection.Empty>
|
||||||
|
<EmptyState>
|
||||||
|
<BlockSlot @name="body">
|
||||||
|
<p>
|
||||||
|
This service has no upstreams{{#if (gt proxy.Service.Proxy.Upstreams.length 0)}} matching that search{{/if}}.
|
||||||
|
</p>
|
||||||
|
</BlockSlot>
|
||||||
|
</EmptyState>
|
||||||
|
</collection.Empty>
|
||||||
|
</DataCollection>
|
||||||
{{/let}}
|
{{/let}}
|
||||||
{{/let}}
|
{{/let}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue