Browse Source

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

pull/14947/head
Michael Klein 2 years ago
parent
commit
35c7cc8ec1
  1. 4
      ui/packages/consul-peerings/app/components/consul/peer/list/index.hbs
  2. 0
      ui/packages/consul-peerings/app/controllers/dc/peers/show/exported.js
  3. 2
      ui/packages/consul-peerings/app/controllers/dc/peers/show/index.js
  4. 0
      ui/packages/consul-peerings/app/templates/dc/peers/show.hbs
  5. 0
      ui/packages/consul-peerings/app/templates/dc/peers/show/addresses.hbs
  6. 0
      ui/packages/consul-peerings/app/templates/dc/peers/show/exported.hbs
  7. 0
      ui/packages/consul-peerings/app/templates/dc/peers/show/imported.hbs
  8. 0
      ui/packages/consul-peerings/app/templates/dc/peers/show/index.hbs
  9. 2
      ui/packages/consul-peerings/vendor/consul-peerings/routes.js
  10. 6
      ui/packages/consul-ui/app/components/peerings/provider/index.js

4
ui/packages/consul-peerings/app/components/consul/peer/list/index.hbs

@ -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

0
ui/packages/consul-peerings/app/controllers/dc/peers/edit/exported.js → ui/packages/consul-peerings/app/controllers/dc/peers/show/exported.js

2
ui/packages/consul-peerings/app/controllers/dc/peers/edit/index.js → ui/packages/consul-peerings/app/controllers/dc/peers/show/index.js

@ -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");
}
}

0
ui/packages/consul-peerings/app/templates/dc/peers/edit.hbs → ui/packages/consul-peerings/app/templates/dc/peers/show.hbs

0
ui/packages/consul-peerings/app/templates/dc/peers/edit/addresses.hbs → ui/packages/consul-peerings/app/templates/dc/peers/show/addresses.hbs

0
ui/packages/consul-peerings/app/templates/dc/peers/edit/exported.hbs → ui/packages/consul-peerings/app/templates/dc/peers/show/exported.hbs

0
ui/packages/consul-peerings/app/templates/dc/peers/edit/imported.hbs → ui/packages/consul-peerings/app/templates/dc/peers/show/imported.hbs

0
ui/packages/consul-peerings/app/templates/dc/peers/edit/index.hbs → ui/packages/consul-peerings/app/templates/dc/peers/show/index.hbs

2
ui/packages/consul-peerings/vendor/consul-peerings/routes.js vendored

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

6
ui/packages/consul-ui/app/components/peerings/provider/index.js

@ -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 }));

Loading…
Cancel
Save