ui: Remove peering detail page (#13836)

* ui: Remove links to the peering detail page

* 404 everything
This commit is contained in:
John Cowen 2022-07-21 17:38:10 +01:00 committed by GitHub
parent 2f81c7b292
commit b960cb671f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 31 deletions

View File

@ -2,21 +2,11 @@
class="consul-peer-list"
...attributes
@items={{@items}}
@linkable="linkable peer"
as |item index|>
<BlockSlot @name="header">
{{#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>
{{item.Name}}
</p>
{{/if}}
</BlockSlot>
<BlockSlot @name="details">
<div class="peers__list__peer-detail">
@ -52,14 +42,6 @@ as |item index|>
{{#if (can 'delete peer' item=item)}}
<Actions as |Action|>
<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}}

View File

@ -21,16 +21,6 @@
},
},
},
edit: {
_options: {
path: '/:name'
},
addresses: {
_options: {
path: '/addresses',
},
},
},
},
},
}))(