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

13 lines
397 B
Handlebars
Raw Normal View History

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