Rename `peers.edit` to `peers.show`

This commit is contained in:
Michael Klein 2022-10-12 10:36:25 +02:00
parent d6f0fe9f6e
commit 35c7cc8ec1
10 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@
{{#if (can "delete peer" item=item)}}
<a
data-test-peer={{item.Name}}
href={{href-to "dc.peers.edit" item.Name}}
href={{href-to "dc.peers.show" item.Name}}
>
{{item.Name}}
</a>
@ -60,7 +60,7 @@
{{/if}}
<Action
data-test-edit-action
@href={{href-to "dc.peers.edit" item.Name}}
@href={{href-to "dc.peers.show" item.Name}}
>
<BlockSlot @name="label">
View

View File

@ -6,6 +6,6 @@ export default class DcPeersEditIndexController extends Controller {
@service router;
@action transitionToImported() {
this.router.replaceWith("dc.peers.edit.imported");
this.router.replaceWith("dc.peers.show.imported");
}
}

View File

@ -22,7 +22,7 @@
},
},
},
edit: {
show: {
_options: {
path: "/:name",
},

View File

@ -22,18 +22,18 @@ export default class PeeringsProvider extends Component {
let tabs = [
{
label: 'Imported Services',
route: 'dc.peers.edit.imported',
route: 'dc.peers.show.imported',
tooltip: this.intl.t('routes.dc.peers.index.detail.imported.tab-tooltip', { name }),
},
{
label: 'Exported Services',
route: 'dc.peers.edit.exported',
route: 'dc.peers.show.exported',
tooltip: this.intl.t('routes.dc.peers.index.detail.exported.tab-tooltip', { name }),
},
];
if (isReceiver) {
tabs = [...tabs, { label: 'Addresses', route: 'dc.peers.edit.addresses' }];
tabs = [...tabs, { label: 'Addresses', route: 'dc.peers.show.addresses' }];
}
return tabs.map((tab) => new Tab({ ...tab, currentRouteName: router.currentRouteName, owner }));