consul/ui-v2/app/components/consul-external-source/index.hbs

18 lines
524 B
Handlebars

{{#if item}}
{{#let (service/external-source item) as |externalSource|}}
{{#if externalSource}}
<span data-test-external-source={{externalSource}} class="consul-external-source {{externalSource}}">
{{#if label}}
{{label}}
{{else}}
{{#if (eq externalSource 'aws')}}
Registered via {{uppercase externalSource}}
{{else}}
Registered via {{capitalize externalSource}}
{{/if}}
{{/if}}
</span>
{{/if}}
{{/let}}
{{/if}}