2020-11-18 11:11:30 +00:00
|
|
|
{{page-title 'Nodes'}}
|
2020-06-17 13:19:50 +00:00
|
|
|
<EventSource @src={{items}} />
|
2020-10-06 13:26:44 +00:00
|
|
|
<EventSource @src={{leader}} />
|
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")
|
|
|
|
)
|
|
|
|
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-10-01 08:33:22 +00:00
|
|
|
<AppView>
|
2020-08-28 13:21:03 +00:00
|
|
|
<BlockSlot @name="header">
|
|
|
|
<h1>
|
|
|
|
Nodes <em>{{format-number items.length}} total</em>
|
|
|
|
</h1>
|
|
|
|
<label for="toolbar-toggle"></label>
|
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="toolbar">
|
|
|
|
{{#if (gt items.length 0) }}
|
2020-10-14 08:03:39 +00:00
|
|
|
<Consul::Node::SearchBar
|
2020-09-01 18:13:11 +00:00
|
|
|
@search={{search}}
|
|
|
|
@onsearch={{action (mut search) value="target.value"}}
|
|
|
|
|
|
|
|
@sort={{sort}}
|
|
|
|
|
|
|
|
@filter={{filters}}
|
|
|
|
/>
|
2020-08-28 13:21:03 +00:00
|
|
|
{{/if}}
|
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="content">
|
2020-12-01 15:45:09 +00:00
|
|
|
<DataCollection
|
|
|
|
@type="node"
|
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::Node::List
|
|
|
|
@items={{collection.items}}
|
|
|
|
@leader={{leader}}
|
|
|
|
/>
|
|
|
|
</collection.Collection>
|
|
|
|
<collection.Empty>
|
2020-08-28 13:21:03 +00:00
|
|
|
<EmptyState>
|
|
|
|
<BlockSlot @name="body">
|
|
|
|
<p>
|
|
|
|
There don't seem to be any registered nodes, or you may not have access to view nodes yet.
|
|
|
|
</p>
|
|
|
|
</BlockSlot>
|
|
|
|
</EmptyState>
|
2020-12-01 15:45:09 +00:00
|
|
|
</collection.Empty>
|
|
|
|
</DataCollection>
|
2020-08-28 13:21:03 +00:00
|
|
|
</BlockSlot>
|
|
|
|
</AppView>
|
2020-05-29 15:42:46 +00:00
|
|
|
{{/let}}
|