open-nomad/ui/app/templates/components/region-switcher.hbs
Michael Lange 9f3a37f1c2 Simplify the control flow around changing namespaces and regions
The UI will no longer try to redirect to the appropriate namespace or
region if one is found in localStorage. Instead, it will assume that
the lack of query param means the default namespaces or region is
desired.
2018-08-09 18:22:39 -07:00

13 lines
355 B
Handlebars

{{#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}}