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

20 lines
547 B
JavaScript

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