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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
469 B
Handlebars
Raw Normal View History

{{#if this.system.shouldShowRegions}}
<span data-test-region-switcher-parent>
<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>
</span>
{{/if}}