a381ecaa09
* Test for aggregate service health and consul agg service health * If a consul UI link is present, show a nice little link * Also add to job services page * Reallocate consul url in mock
23 lines
599 B
JavaScript
23 lines
599 B
JavaScript
import Component from '@glimmer/component';
|
|
import { action } from '@ember/object';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
export default class JobServiceRowComponent extends Component {
|
|
@service router;
|
|
@service system;
|
|
|
|
@action
|
|
gotoService(service) {
|
|
if (service.provider === 'nomad') {
|
|
this.router.transitionTo('jobs.job.services.service', service.name, {
|
|
queryParams: { level: service.level },
|
|
instances: service.instances,
|
|
});
|
|
}
|
|
}
|
|
|
|
get consulRedirectLink() {
|
|
return this.system.agent.get('config')?.UI?.Consul?.BaseUIURL;
|
|
}
|
|
}
|