open-consul/ui/packages/consul-ui/app/templates/dc/nodes/show/sessions.hbs

15 lines
532 B
Handlebars

<EventSource @src={{sessions}} />
<div class="tab-section">
{{#if (gt sessions.length 0)}}
<Consul::LockSession::List @items={{sessions}} @onInvalidate={{action send 'invalidateSession'}}/>
{{else}}
<EmptyState>
<BlockSlot @name="body">
<p>
There are no Lock Sessions for this Node. For more information, view <a href="{{ env 'CONSUL_DOCS_URL'}}/internals/sessions.html" rel="noopener noreferrer" target="_blank">our documentation</a>
</p>
</BlockSlot>
</EmptyState>
{{/if}}
</div>