open-consul/ui/packages/consul-ui/app/controllers/dc/services/instance/healthchecks.js

15 lines
469 B
JavaScript

import Controller from '@ember/controller';
import { action } from '@ember/object';
export default class HealthChecksController extends Controller {
@action
syntheticNodeSearchPropertyFilter(item, searchProperty) {
return !(item.Node.Meta?.['synthetic-node'] && searchProperty === 'Node');
}
@action
syntheticNodeHealthCheckFilter(item, healthcheck, index, list) {
return !(item.Node.Meta?.['synthetic-node'] && healthcheck?.Kind === 'node');
}
}