open-consul/ui/packages/consul-ui/app/components/topology-metrics/status/index.hbs

16 lines
688 B
Handlebars

{{#if (or @noMetricsReason @error)}}
<span data-test-topology-metrics-status class="topology-metrics-status-error">
{{#if (eq @noMetricsReason 'ingress-gateway')}}
{{t "components.consul.topology-metrics.status.ingress-gateway"}}
{{else if (eq @noMetricsReason 'remote-dc')}}
{{t "components.consul.topology-metrics.status.error"}}
<span
{{tooltip (t "components.consul.topology-metrics.status.remote-dc")}}
/>
{{else if @error}}
{{t "components.consul.topology-metrics.status.error"}}
{{/if}}
</span>
{{else}}
<span class="topology-metrics-status-loader">{{t "components.consul.topology-metrics.status.loading"}}</span>
{{/if}}