refactor: 💡 consolidate host catalog type badges to component

This commit is contained in:
Randall Morey committed 2022-02-14 18:06:12 -05:00
1 parent 318103b745
commit ed248f583f
7 files changed
+38 -68

No files matched your search

@@ -0,0 +1,15 @@
{{#if @model.isStatic}}
<Rose::Badge>
{{t (concat 'resources.host-catalog.types.' @model.compositeType '.label')}}
</Rose::Badge>
{{else if @model.isUnknown}}
<Rose::Badge>
{{t (concat 'resources.host-catalog.types.' @model.compositeType '.label')}}
</Rose::Badge>
{{else}}
<Rose::Badge
@icon={{concat 'flight-icons/svg/' @model.compositeType '-color-16'}}
>
{{t (concat 'resources.host-catalog.types.' @model.compositeType '.label')}}
</Rose::Badge>
{{/if}}