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

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 I see importedServicesIsVisible 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
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 I see importedServicesIsVisible 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
And 1 datacenter model with the value "dc-1"
@ -133,4 +133,4 @@ Feature: dc / peers / show: Peers show
dc: dc-1
peer: a-peer
---
Then I don't see the "[data-test-addresses-empty]" element
Then I don't see the "[data-test-addresses-empty]" element

View File

@ -5,6 +5,6 @@ export default function (visitable, creatable, items, popoverSelect) {
visit: visitable('/:dc/peers'),
peers: items(),
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:
count: |
{count} exported services
tooltip: The number of services exported from {name}
tab-tooltip: Services exported from {name}
tooltip: The number of services exported to {name}
tab-tooltip: Services exported to {name}
addresses:
tooltip: The number of services exported from {name}
tooltip: The number of services exported to {name}
show:
imported:
empty: