open-consul/ui/packages/consul-ui/app/components/topology-metrics/card/index.js

17 lines
396 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
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';
}
}