Merge pull request #14975 from hashicorp/ui/bugfix/peering-misspelling

UI: Copy changes for peering detail page
This commit is contained in:
Jasmine W 2022-10-13 15:28:21 -04:00 committed by GitHub
commit e04c56a3a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -33,7 +33,7 @@ export default class PeeringsProvider extends Component {
]; ];
if (isReceiver) { if (isReceiver) {
tabs = [...tabs, { label: 'Addresses', route: 'dc.peers.show.addresses' }]; tabs = [...tabs, { label: 'Server Addresses', route: 'dc.peers.show.addresses' }];
} }
return tabs.map((tab) => new Tab({ ...tab, currentRouteName: router.currentRouteName, owner })); return tabs.map((tab) => new Tab({ ...tab, currentRouteName: router.currentRouteName, owner }));

View File

@ -18,7 +18,7 @@ Feature: dc / peers / show: Peers show
Then the url should be /dc-1/peers/a-peer/imported-services Then the url should be /dc-1/peers/a-peer/imported-services
Then I see importedServicesIsVisible on the tabs Then I see importedServicesIsVisible on the tabs
And I see exportedServicesIsVisible on the tabs And I see exportedServicesIsVisible on the tabs
And I don't see addressesIsVisible on the tabs And I don't see serverAddressesIsVisible on the tabs
Scenario: Receiver side tabs Scenario: Receiver side tabs
And 1 datacenter model with the value "dc-1" And 1 datacenter model with the value "dc-1"
@ -38,7 +38,7 @@ Feature: dc / peers / show: Peers show
Then the url should be /dc-1/peers/a-peer/imported-services Then the url should be /dc-1/peers/a-peer/imported-services
Then I see importedServicesIsVisible on the tabs Then I see importedServicesIsVisible on the tabs
And I see exportedServicesIsVisible on the tabs And I see exportedServicesIsVisible on the tabs
And I see addressesIsVisible on the tabs And I see serverAddressesIsVisible on the tabs
Scenario: Imported Services Empty Scenario: Imported Services Empty
And 1 datacenter model with the value "dc-1" And 1 datacenter model with the value "dc-1"

View File

@ -5,6 +5,6 @@ export default function (visitable, creatable, items, popoverSelect) {
visit: visitable('/:dc/peers'), visit: visitable('/:dc/peers'),
peers: items(), peers: items(),
sort: popoverSelect('[data-test-sort-control]'), sort: popoverSelect('[data-test-sort-control]'),
tabs: tabgroup('tab', ['imported-services', 'exported-services', 'addresses']), tabs: tabgroup('tab', ['imported-services', 'exported-services', 'server-addresses']),
}); });
} }

View File

@ -141,10 +141,10 @@ dc:
exported: exported:
count: | count: |
{count} exported services {count} exported services
tooltip: The number of services exported from {name} tooltip: The number of services exported to {name}
tab-tooltip: Services exported from {name} tab-tooltip: Services exported to {name}
addresses: addresses:
tooltip: The number of services exported from {name} tooltip: The number of services exported to {name}
show: show:
imported: imported:
empty: empty: