2021-03-08 12:15:54 +00:00
|
|
|
<Route
|
|
|
|
@name={{routeName}}
|
2021-04-06 12:40:40 +00:00
|
|
|
as |route|>
|
2020-12-01 15:45:09 +00:00
|
|
|
<div class="tab-section">
|
2021-01-25 18:13:54 +00:00
|
|
|
{{#let
|
|
|
|
|
|
|
|
(hash
|
|
|
|
value=(or sortBy "Status:asc")
|
|
|
|
change=(action (mut sortBy) value="target.selected")
|
|
|
|
)
|
|
|
|
|
|
|
|
(hash
|
|
|
|
status=(hash
|
|
|
|
value=(if status (split status ',') undefined)
|
|
|
|
change=(action (mut status) value="target.selectedItems")
|
|
|
|
)
|
|
|
|
source=(hash
|
|
|
|
value=(if source (split source ',') undefined)
|
|
|
|
change=(action (mut source) value="target.selectedItems")
|
|
|
|
)
|
|
|
|
searchproperty=(hash
|
|
|
|
value=(if (not-eq searchproperty undefined)
|
|
|
|
(split searchproperty ',')
|
|
|
|
searchProperties
|
|
|
|
)
|
|
|
|
change=(action (mut searchproperty) value="target.selectedItems")
|
|
|
|
default=searchProperties
|
|
|
|
)
|
2020-12-01 15:45:09 +00:00
|
|
|
)
|
2021-01-25 18:13:54 +00:00
|
|
|
|
|
|
|
items
|
|
|
|
|
|
|
|
as |sort filters items|}}
|
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-12-14 14:25:33 +00:00
|
|
|
@sources={{get (collection items) 'ExternalSources'}}
|
2020-09-01 18:13:11 +00:00
|
|
|
@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}}
|
|
|
|
|
|
|
|
@filter={{filters}}
|
|
|
|
/>
|
|
|
|
{{/if}}
|
2020-12-09 13:08:30 +00:00
|
|
|
{{! Service > Service Instance view doesn't require filtering of proxies }}
|
2020-12-01 15:45:09 +00:00
|
|
|
<DataCollection
|
|
|
|
@type="service-instance"
|
2021-01-25 18:13:54 +00:00
|
|
|
@sort={{sort.value}}
|
2020-12-01 15:45:09 +00:00
|
|
|
@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}}
|
2020-04-08 09:56:36 +00:00
|
|
|
</div>
|
2021-03-08 12:15:54 +00:00
|
|
|
</Route>
|