open-consul/ui/packages/consul-ui/app/components/consul/external-source/index.hbs

22 lines
573 B
Handlebars
Raw Normal View History

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