Add tooltips exported/imported tabs
This commit is contained in:
parent
184a2a0e78
commit
f7e36609ad
|
@ -5,6 +5,7 @@ import { Tab } from 'consul-ui/components/tab-nav';
|
||||||
|
|
||||||
export default class PeeringsProvider extends Component {
|
export default class PeeringsProvider extends Component {
|
||||||
@service router;
|
@service router;
|
||||||
|
@service intl;
|
||||||
|
|
||||||
get data() {
|
get data() {
|
||||||
return {
|
return {
|
||||||
|
@ -17,15 +18,21 @@ export default class PeeringsProvider extends Component {
|
||||||
const { router } = this;
|
const { router } = this;
|
||||||
const owner = getOwner(this);
|
const owner = getOwner(this);
|
||||||
|
|
||||||
|
const { isReceiver, Name: name } = peer;
|
||||||
let tabs = [
|
let tabs = [
|
||||||
{ label: 'Imported Services', route: 'dc.peers.edit.imported' },
|
{
|
||||||
|
label: 'Imported Services',
|
||||||
|
route: 'dc.peers.edit.imported',
|
||||||
|
tooltip: this.intl.t('routes.dc.peers.index.detail.imported.tab-tooltip', { name }),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Exported Services',
|
label: 'Exported Services',
|
||||||
route: 'dc.peers.edit.exported',
|
route: 'dc.peers.edit.exported',
|
||||||
|
tooltip: this.intl.t('routes.dc.peers.index.detail.exported.tab-tooltip', { name }),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
if (peer.isReceiver) {
|
if (isReceiver) {
|
||||||
tabs = [...tabs, { label: 'Addresses', route: 'dc.peers.edit.addresses' }];
|
tabs = [...tabs, { label: 'Addresses', route: 'dc.peers.edit.addresses' }];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -135,11 +135,15 @@ dc:
|
||||||
detail:
|
detail:
|
||||||
imported:
|
imported:
|
||||||
count: |
|
count: |
|
||||||
{count} imported services
|
{count} imported services
|
||||||
tooltip: The number of services imported from {name}
|
tooltip: The number of services imported from {name}
|
||||||
|
tab-tooltip: Services imported from {name}
|
||||||
exported:
|
exported:
|
||||||
count: |
|
count: |
|
||||||
{count} exported services
|
{count} exported services
|
||||||
|
tooltip: The number of services exported from {name}
|
||||||
|
tab-tooltip: Services exported from {name}
|
||||||
|
addresses:
|
||||||
tooltip: The number of services exported from {name}
|
tooltip: The number of services exported from {name}
|
||||||
partitions:
|
partitions:
|
||||||
index:
|
index:
|
||||||
|
|
Loading…
Reference in New Issue