{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0 }} <:status as |search|> {{#let (t (concat "components.consul.health-check.search-bar." search.status.key ".name") default=(array (concat "common.search." search.status.key) (concat "common.consul." search.status.key) ) ) (t (concat "components.consul.health-check.search-bar." search.status.key ".options." search.status.value) default=(array (concat "common.search." search.status.value) (concat "common.consul." search.status.value) ) ) as |key value|}}
{{key}}
{{value}}
{{/let}} <:search as |search|> {{#if @filter.searchproperty}} {{t "common.search.searchproperty"}} {{#let components.Optgroup components.Option as |Optgroup Option|}} {{#each @filter.searchproperty.default as |prop|}} {{/each}} {{/let}} {{/if}} <:filter as |search|> {{t "common.consul.status"}} {{#let components.Optgroup components.Option as |Optgroup Option|}} {{#each (array "passing" "warning" "critical" "empty") as |state|}} {{/each}} {{/let}} {{#if @filter.kind}} {{t "components.consul.health-check.search-bar.kind.name"}} {{#let components.Optgroup components.Option as |Optgroup Option|}} {{#each (array "service" "node") as |item|}} {{/each}} {{/let}} {{/if}} {{t "components.consul.health-check.search-bar.check.name"}} {{#let components.Optgroup components.Option as |Optgroup Option|}} {{#each (array "alias" "docker" "grpc" "http" "script" "serf" "tcp" "ttl") as |item|}} {{/each}} {{/let}} <:sort as |search|> {{#let (from-entries (array (array "Name:asc" (t "common.sort.alpha.asc")) (array "Name:desc" (t "common.sort.alpha.desc")) (array "Status:asc" (t "common.sort.status.asc")) (array "Status:desc" (t "common.sort.status.desc")) (array "Kind:asc" (t "components.consul.health-check.search-bar.sort.kind.asc")) (array "Kind:desc" (t "components.consul.health-check.search-bar.sort.kind.desc")) )) as |selectable| }} {{get selectable @sort.value}} {{/let}} {{#let components.Optgroup components.Option as |Optgroup Option|}} {{/let}}