open-nomad/ui/app/templates/components/region-switcher.hbs

13 lines
372 B
Handlebars
Raw Normal View History

{{#if system.shouldShowRegions}}
<PowerSelect
data-test-region-switcher
@tagName="div"
@triggerClass={{decoration}}
@options={{sortedRegions}}
@selected={{system.activeRegion}}
@searchEnabled={{false}}
@onChange={{action gotoRegion}} as |region|>
<span class="ember-power-select-prefix">Region: </span>{{region}}
</PowerSelect>
{{/if}}