mirror of https://github.com/status-im/consul.git
17 lines
397 B
JavaScript
17 lines
397 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import Component from '@glimmer/component';
|
|
import { get } from '@ember/object';
|
|
|
|
export default class TopologyMetrics extends Component {
|
|
// =methods
|
|
get hrefPath() {
|
|
const source = get(this.args.item, 'Source');
|
|
|
|
return source === 'routing-config' ? 'dc.routing-config' : 'dc.services.show.index';
|
|
}
|
|
}
|