2021-04-06 12:40:40 +00:00
|
|
|
<Route
|
|
|
|
@name={{routeName}}
|
|
|
|
as |route|>
|
|
|
|
{{#let
|
2021-01-25 18:13:54 +00:00
|
|
|
|
2021-04-06 12:40:40 +00:00
|
|
|
(hash
|
|
|
|
value=(or sortBy "Status:asc")
|
|
|
|
change=(action (mut sortBy) value="target.selected")
|
2021-01-25 18:13:54 +00:00
|
|
|
)
|
2021-04-06 12:40:40 +00:00
|
|
|
|
|
|
|
(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
|
2021-01-25 18:13:54 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2021-09-15 18:50:11 +00:00
|
|
|
route.model.item.MeshServiceInstances
|
2022-02-10 15:28:26 +00:00
|
|
|
route.model.item.ProxyServiceInstances
|
2021-01-25 18:13:54 +00:00
|
|
|
|
2022-02-10 15:28:26 +00:00
|
|
|
as |sort filters items proxies|}}
|
2021-04-06 12:40:40 +00:00
|
|
|
<div class="tab-section">
|
|
|
|
{{#if (gt items.length 0) }}
|
|
|
|
<input type="checkbox" id="toolbar-toggle" />
|
|
|
|
<Consul::ServiceInstance::SearchBar
|
|
|
|
@sources={{get (collection items) 'ExternalSources'}}
|
|
|
|
@search={{search}}
|
|
|
|
@onsearch={{action (mut search) value="target.value"}}
|
|
|
|
@searchproperties={{searchProperties}}
|
2020-12-09 13:08:30 +00:00
|
|
|
|
2021-04-06 12:40:40 +00:00
|
|
|
@sort={{sort}}
|
2020-12-09 13:08:30 +00:00
|
|
|
|
2021-04-06 12:40:40 +00:00
|
|
|
@filter={{filters}}
|
2020-12-09 13:08:30 +00:00
|
|
|
/>
|
2021-04-06 12:40:40 +00:00
|
|
|
{{/if}}
|
|
|
|
<DataCollection
|
|
|
|
@type="service-instance"
|
|
|
|
@sort={{sort.value}}
|
|
|
|
@filters={{filters}}
|
|
|
|
@search={{search}}
|
|
|
|
@items={{items}}
|
|
|
|
as |collection|>
|
|
|
|
<collection.Collection>
|
|
|
|
<Consul::ServiceInstance::List
|
2022-02-10 15:28:26 +00:00
|
|
|
@node={{route.model.item}}
|
2021-04-06 12:40:40 +00:00
|
|
|
@routeName="dc.services.show"
|
|
|
|
@items={{collection.items}}
|
2022-02-10 15:28:26 +00:00
|
|
|
@proxies={{proxies}}
|
2021-04-06 12:40:40 +00:00
|
|
|
/>
|
|
|
|
</collection.Collection>
|
|
|
|
<collection.Empty>
|
|
|
|
<EmptyState>
|
|
|
|
<BlockSlot @name="body">
|
2022-04-11 11:49:59 +00:00
|
|
|
{{t "routes.dc.nodes.show.services.empty"
|
|
|
|
items=items.length
|
|
|
|
htmlSafe=true
|
|
|
|
}}
|
2021-04-06 12:40:40 +00:00
|
|
|
</BlockSlot>
|
|
|
|
</EmptyState>
|
|
|
|
</collection.Empty>
|
|
|
|
</DataCollection>
|
|
|
|
</div>
|
|
|
|
{{/let}}
|
|
|
|
</Route>
|