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}} />
|
2020-09-01 18:13:11 +00:00
|
|
|
{{#let (hash
|
|
|
|
statuses=(if status (split status ',') undefined)
|
2020-12-01 15:45:09 +00:00
|
|
|
searchproperties=(if (not-eq searchproperty undefined)
|
|
|
|
(split searchproperty ',')
|
|
|
|
(array 'Node' 'Address' '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-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}}
|
|
|
|
@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")
|
|
|
|
}}
|
|
|
|
/>
|
2020-08-28 13:21:03 +00:00
|
|
|
{{/if}}
|
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="content">
|
2020-12-01 15:45:09 +00:00
|
|
|
<DataCollection
|
|
|
|
@type="node"
|
|
|
|
@sort={{sort}}
|
|
|
|
@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-09-01 18:13:11 +00:00
|
|
|
{{/let}}
|
2020-05-29 15:42:46 +00:00
|
|
|
{{/let}}
|