mirror of https://github.com/status-im/consul.git
59 lines
2.1 KiB
Handlebars
59 lines
2.1 KiB
Handlebars
{{title 'Services'}}
|
|
{{#let (selectable-key-values
|
|
(array "Name:asc" "A to Z")
|
|
(array "Name:desc" "Z to A")
|
|
selected=sortBy
|
|
)
|
|
as |sort|
|
|
}}
|
|
<AppView @class="service list">
|
|
<BlockSlot @name="notification" as |status type|>
|
|
{{partial 'dc/services/notifications'}}
|
|
</BlockSlot>
|
|
<BlockSlot @name="header">
|
|
<h1>
|
|
Services <em>{{format-number items.length}} total</em>
|
|
</h1>
|
|
<label for="toolbar-toggle"></label>
|
|
</BlockSlot>
|
|
<BlockSlot @name="toolbar">
|
|
{{#if (gt items.length 0) }}
|
|
<CatalogToolbar
|
|
@searchable={{searchable}}
|
|
@value={{search}}
|
|
@selected={{sort.selected}}
|
|
@options={{sort.items}}
|
|
@onchange={{action (mut sortBy) value='target.selected.key'}}
|
|
/>
|
|
{{/if}}
|
|
</BlockSlot>
|
|
<BlockSlot @name="content">
|
|
<ChangeableSet @dispatcher={{searchable}}>
|
|
<BlockSlot @name="set" as |filtered|>
|
|
<ConsulServiceList @routeName="dc.services.show" @items={{sort-by sort.selected.key filtered}} @proxies={{proxies}}/>
|
|
</BlockSlot>
|
|
<BlockSlot @name="empty">
|
|
<EmptyState @allowLogin={{true}}>
|
|
<BlockSlot @name="header">
|
|
<h2>Welcome to Services</h2>
|
|
</BlockSlot>
|
|
<BlockSlot @name="body">
|
|
<p>
|
|
There don't seem to be any registered services, or you may not have access to view services yet.
|
|
</p>
|
|
</BlockSlot>
|
|
<BlockSlot @name="actions">
|
|
<li class="docs-link">
|
|
<a href="{{env 'CONSUL_DOCS_URL'}}/commands/services" rel="noopener noreferrer" target="_blank">Documentation on services</a>
|
|
</li>
|
|
<li class="learn-link">
|
|
<a href="{{env 'CONSUL_DOCS_LEARN_URL'}}/consul/getting-started/services" rel="noopener noreferrer" target="_blank">Read the guide</a>
|
|
</li>
|
|
</BlockSlot>
|
|
</EmptyState>
|
|
</BlockSlot>
|
|
</ChangeableSet>
|
|
</BlockSlot>
|
|
</AppView>
|
|
{{/let}}
|