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

13 lines
355 B
Handlebars
Raw Normal View History

{{#if system.shouldShowRegions}}
{{#power-select
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}}
{{/power-select}}
{{/if}}