mirror of
https://github.com/status-im/consul.git
synced 2025-01-24 12:40:17 +00:00
Improve peered service empty downstreams message (#13854)
This commit is contained in:
parent
a8df87f574
commit
bcbc36ecec
@ -5,6 +5,7 @@ import { inject as service } from '@ember/service';
|
||||
|
||||
export default class TopologyMetrics extends Component {
|
||||
@service('env') env;
|
||||
@service() abilities;
|
||||
|
||||
// =attributes
|
||||
@tracked centerDimensions;
|
||||
@ -87,8 +88,12 @@ export default class TopologyMetrics extends Component {
|
||||
Namespace: '',
|
||||
});
|
||||
} else if (downstreams.length === 0) {
|
||||
const canUsePeers = this.abilities.can('use peers');
|
||||
|
||||
items.push({
|
||||
Name: 'No downstreams, or the downstreams are imported services.',
|
||||
Name: canUsePeers
|
||||
? 'No downstreams, or the downstreams are imported services.'
|
||||
: 'No downstreams.',
|
||||
Datacenter: '',
|
||||
Namespace: '',
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user