mirror of https://github.com/status-im/consul.git
Add link to peers.edit to peerings list
This commit is contained in:
parent
e2ca73ecbe
commit
ef83c0799f
|
@ -2,13 +2,21 @@
|
|||
class="consul-peer-list"
|
||||
...attributes
|
||||
@items={{@items}}
|
||||
as |item index|>
|
||||
as |item index|
|
||||
>
|
||||
<BlockSlot @name="header">
|
||||
<p
|
||||
{{#if (can "delete peer" item=item)}}
|
||||
<a
|
||||
data-test-peer={{item.Name}}
|
||||
href={{href-to "dc.peers.edit" item.Name}}
|
||||
>
|
||||
{{item.Name}}
|
||||
</a>
|
||||
{{else}}
|
||||
<p data-test-peer={{item.Name}}>
|
||||
{{item.Name}}
|
||||
</p>
|
||||
{{/if}}
|
||||
</BlockSlot>
|
||||
<BlockSlot @name="details">
|
||||
<div class="peers__list__peer-detail">
|
||||
|
@ -16,24 +24,22 @@ as |item index|>
|
|||
|
||||
<div
|
||||
{{tooltip
|
||||
(t 'routes.dc.peers.index.detail.imported.tooltip'
|
||||
name=item.Name
|
||||
)
|
||||
(t "routes.dc.peers.index.detail.imported.tooltip" name=item.Name)
|
||||
}}
|
||||
>
|
||||
{{t 'routes.dc.peers.index.detail.imported.count'
|
||||
{{t
|
||||
"routes.dc.peers.index.detail.imported.count"
|
||||
count=(format-number item.ImportedServiceCount)
|
||||
}}
|
||||
</div>
|
||||
|
||||
<div
|
||||
{{tooltip
|
||||
(t 'routes.dc.peers.index.detail.exported.tooltip'
|
||||
name=item.Name
|
||||
)
|
||||
(t "routes.dc.peers.index.detail.exported.tooltip" name=item.Name)
|
||||
}}
|
||||
>
|
||||
{{t 'routes.dc.peers.index.detail.exported.count'
|
||||
{{t
|
||||
"routes.dc.peers.index.detail.exported.count"
|
||||
count=(format-number item.ExportedServiceCount)
|
||||
}}
|
||||
</div>
|
||||
|
@ -50,7 +56,15 @@ as |item index|>
|
|||
Regenerate token
|
||||
</BlockSlot>
|
||||
</Action>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
<Action
|
||||
data-test-edit-action
|
||||
@href={{href-to "dc.peers.edit" item.Name}}
|
||||
>
|
||||
<BlockSlot @name="label">
|
||||
View
|
||||
</BlockSlot>
|
||||
</Action>
|
||||
<Action
|
||||
data-test-delete-action
|
||||
@onclick={{fn @ondelete item}}
|
||||
|
@ -78,7 +92,6 @@ as |item index|>
|
|||
</BlockSlot>
|
||||
</Action>
|
||||
</Actions>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</BlockSlot>
|
||||
</ListCollection>
|
||||
|
||||
|
|
Loading…
Reference in New Issue