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.
This commit is contained in:
John Cowen 2021-01-05 10:04:03 +00:00 committed by hashicorp-ci
parent 3faee062a5
commit 2d20c4e408
1 changed files with 24 additions and 24 deletions

View File

@ -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>