mirror of
https://github.com/status-im/consul.git
synced 2025-02-18 08:36:46 +00:00
ui: Remove peering detail page (#13836)
* ui: Remove links to the peering detail page * 404 everything
This commit is contained in:
parent
2f81c7b292
commit
b960cb671f
@ -2,21 +2,11 @@
|
|||||||
class="consul-peer-list"
|
class="consul-peer-list"
|
||||||
...attributes
|
...attributes
|
||||||
@items={{@items}}
|
@items={{@items}}
|
||||||
@linkable="linkable peer"
|
|
||||||
as |item index|>
|
as |item index|>
|
||||||
<BlockSlot @name="header">
|
<BlockSlot @name="header">
|
||||||
{{#if (can 'delete peer' item=item)}}
|
<p>
|
||||||
<a
|
{{item.Name}}
|
||||||
data-test-peer={{item.Name}}
|
</p>
|
||||||
href={{href-to 'dc.peers.edit' item.Name}}
|
|
||||||
>
|
|
||||||
{{item.Name}}
|
|
||||||
</a>
|
|
||||||
{{else}}
|
|
||||||
<p>
|
|
||||||
{{item.Name}}
|
|
||||||
</p>
|
|
||||||
{{/if}}
|
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
<BlockSlot @name="details">
|
<BlockSlot @name="details">
|
||||||
<div class="peers__list__peer-detail">
|
<div class="peers__list__peer-detail">
|
||||||
@ -52,14 +42,6 @@ as |item index|>
|
|||||||
{{#if (can 'delete peer' item=item)}}
|
{{#if (can 'delete peer' item=item)}}
|
||||||
|
|
||||||
<Actions as |Action|>
|
<Actions as |Action|>
|
||||||
<Action
|
|
||||||
data-test-edit-action
|
|
||||||
@href={{href-to 'dc.peers.edit' item.Name}}
|
|
||||||
>
|
|
||||||
<BlockSlot @name="label">
|
|
||||||
View
|
|
||||||
</BlockSlot>
|
|
||||||
</Action>
|
|
||||||
<Action
|
<Action
|
||||||
data-test-delete-action
|
data-test-delete-action
|
||||||
@onclick={{fn @ondelete item}}
|
@onclick={{fn @ondelete item}}
|
||||||
|
@ -21,16 +21,6 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
edit: {
|
|
||||||
_options: {
|
|
||||||
path: '/:name'
|
|
||||||
},
|
|
||||||
addresses: {
|
|
||||||
_options: {
|
|
||||||
path: '/addresses',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}))(
|
}))(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user