2020-12-01 15:45:09 +00:00
|
|
|
<div class="tab-section">
|
2020-04-08 09:56:36 +00:00
|
|
|
<div role="tabpanel">
|
2020-09-01 18:13:11 +00:00
|
|
|
{{#let (hash
|
|
|
|
statuses=(if status (split status ',') undefined)
|
|
|
|
sources=(if source (split source ',') undefined)
|
2020-12-01 15:45:09 +00:00
|
|
|
searchproperties=(if (not-eq searchproperty undefined)
|
|
|
|
(split searchproperty ',')
|
|
|
|
(array 'Name' 'Tags' 'ID' 'Address' 'Port' 'Service.Meta' 'Node.Meta')
|
|
|
|
)
|
2020-09-01 18:13:11 +00:00
|
|
|
) as |filters|}}
|
2020-11-19 16:05:46 +00:00
|
|
|
{{#let (or sortBy "Status:asc") as |sort|}}
|
2020-09-01 18:13:11 +00:00
|
|
|
{{#if (gt items.length 0) }}
|
2020-04-08 09:56:36 +00:00
|
|
|
<input type="checkbox" id="toolbar-toggle" />
|
2020-10-14 08:03:39 +00:00
|
|
|
<Consul::ServiceInstance::SearchBar
|
2020-09-01 18:13:11 +00:00
|
|
|
@sources={{externalSources}}
|
|
|
|
@search={{search}}
|
2020-05-29 15:42:46 +00:00
|
|
|
@onsearch={{action (mut search) value="target.value"}}
|
2020-09-01 18:13:11 +00:00
|
|
|
|
|
|
|
@sort={{sort}}
|
|
|
|
@onsort={{action (mut sortBy) value="target.selected"}}
|
|
|
|
|
|
|
|
@filter={{filters}}
|
|
|
|
@onfilter={{hash
|
2020-12-01 15:45:09 +00:00
|
|
|
searchproperty=(action (mut searchproperty) value="target.selectedItems")
|
2020-09-01 18:13:11 +00:00
|
|
|
status=(action (mut status) value="target.selectedItems")
|
|
|
|
source=(action (mut source) value="target.selectedItems")
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
{{/if}}
|
2020-12-01 15:45:09 +00:00
|
|
|
<DataCollection
|
|
|
|
@type="service-instance"
|
|
|
|
@sort={{sort}}
|
|
|
|
@filters={{filters}}
|
|
|
|
@search={{search}}
|
|
|
|
@items={{items}}
|
|
|
|
as |collection|>
|
|
|
|
<collection.Collection>
|
|
|
|
<Consul::ServiceInstance::List
|
|
|
|
@routeName="dc.services.instance"
|
|
|
|
@items={{collection.items}}
|
|
|
|
/>
|
|
|
|
</collection.Collection>
|
|
|
|
<collection.Empty>
|
2020-07-08 13:34:57 +00:00
|
|
|
<EmptyState>
|
|
|
|
<BlockSlot @name="body">
|
|
|
|
<p>
|
2020-12-01 15:45:09 +00:00
|
|
|
There are no instances{{#if (gt items.length 0)}} matching that search{{/if}}.
|
2020-07-08 13:34:57 +00:00
|
|
|
</p>
|
|
|
|
</BlockSlot>
|
|
|
|
</EmptyState>
|
2020-12-01 15:45:09 +00:00
|
|
|
</collection.Empty>
|
|
|
|
</DataCollection>
|
2020-09-01 18:13:11 +00:00
|
|
|
{{/let}}
|
|
|
|
{{/let}}
|
2020-04-08 09:56:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|