2020-11-18 11:11:30 +00:00
|
|
|
{{page-title item.Node}}
|
2020-12-17 16:35:01 +00:00
|
|
|
<DataLoader as |loader|>
|
2020-07-17 13:42:45 +00:00
|
|
|
|
|
|
|
<BlockSlot @name="data">
|
2020-12-17 16:35:01 +00:00
|
|
|
<EventSource @src={{item}} @onerror={{action loader.dispatchError}} />
|
2020-07-17 13:42:45 +00:00
|
|
|
<EventSource @src={{tomography}} />
|
|
|
|
</BlockSlot>
|
|
|
|
|
|
|
|
<BlockSlot @name="error">
|
2020-12-17 16:35:01 +00:00
|
|
|
<AppError @error={{loader.error}} />
|
2020-07-17 13:42:45 +00:00
|
|
|
</BlockSlot>
|
|
|
|
|
|
|
|
<BlockSlot @name="disconnected" as |Notification|>
|
2020-12-17 16:35:01 +00:00
|
|
|
{{#if (eq loader.error.status "404")}}
|
2020-07-17 13:42:45 +00:00
|
|
|
<Notification @sticky={{true}}>
|
|
|
|
<p data-notification role="alert" class="warning notification-update">
|
|
|
|
<strong>Warning!</strong>
|
|
|
|
This node no longer exists in the catalog.
|
|
|
|
</p>
|
|
|
|
</Notification>
|
|
|
|
{{else}}
|
|
|
|
<Notification @sticky={{true}}>
|
|
|
|
<p data-notification role="alert" class="warning notification-update">
|
|
|
|
<strong>Warning!</strong>
|
|
|
|
An error was returned whilst loading this data, refresh to try again.
|
|
|
|
</p>
|
|
|
|
</Notification>
|
|
|
|
{{/if}}
|
|
|
|
</BlockSlot>
|
|
|
|
|
|
|
|
<BlockSlot @name="loaded">
|
2020-10-01 08:33:22 +00:00
|
|
|
<AppView>
|
2020-07-17 13:42:45 +00:00
|
|
|
<BlockSlot @name="notification" as |status type|>
|
2020-10-19 16:31:01 +00:00
|
|
|
<Consul::LockSession::Notifications
|
|
|
|
@type={{type}}
|
|
|
|
@status={{status}}
|
|
|
|
/>
|
2020-07-17 13:42:45 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="breadcrumbs">
|
|
|
|
<ol>
|
|
|
|
<li><a data-test-back href={{href-to 'dc.nodes'}}>All Nodes</a></li>
|
|
|
|
</ol>
|
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="header">
|
|
|
|
<h1>
|
|
|
|
{{ item.Node }}
|
|
|
|
</h1>
|
|
|
|
<label for="toolbar-toggle"></label>
|
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="nav">
|
|
|
|
<TabNav @items={{
|
|
|
|
compact
|
|
|
|
(array
|
|
|
|
(hash label="Health Checks" href=(href-to "dc.nodes.show.healthchecks") selected=(is-href "dc.nodes.show.healthchecks"))
|
|
|
|
(hash label="Service Instances" href=(href-to "dc.nodes.show.services") selected=(is-href "dc.nodes.show.services"))
|
|
|
|
(if tomography.distances (hash label="Round Trip Time" href=(href-to "dc.nodes.show.rtt") selected=(is-href "dc.nodes.show.rtt")) '')
|
|
|
|
(hash label="Lock Sessions" href=(href-to "dc.nodes.show.sessions") selected=(is-href "dc.nodes.show.sessions"))
|
|
|
|
(hash label="Metadata" href=(href-to "dc.nodes.show.metadata") selected=(is-href "dc.nodes.show.metadata"))
|
|
|
|
)
|
|
|
|
}}/>
|
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="actions">
|
|
|
|
<CopyButton @value={{item.Address}} @name="Address">{{item.Address}}</CopyButton>
|
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="content">
|
2020-10-01 08:33:22 +00:00
|
|
|
<Outlet
|
|
|
|
@name={{routeName}}
|
|
|
|
as |o|>
|
|
|
|
{{outlet}}
|
|
|
|
</Outlet>
|
2020-07-17 13:42:45 +00:00
|
|
|
</BlockSlot>
|
|
|
|
</AppView>
|
|
|
|
|
|
|
|
</BlockSlot>
|
|
|
|
</DataLoader>
|