open-nomad/ui/app/components/single-select-dropdown/index.hbs
Michael Lange e8593ec1bb
ui: Update namespaces design (#10444)
This rethinks namespaces as a filter on list pages rather than a global setting.

The biggest net-new feature here is being able to select All (*) to list all jobs
or CSI volumes across namespaces.
2021-04-29 15:00:59 -05:00

14 lines
501 B
Handlebars

<div data-test-single-select-dropdown class="dropdown" ...attributes>
<PowerSelect
@options={{@options}}
@selected={{this.activeOption}}
@searchEnabled={{gt @options.length 10}}
@searchField="label"
@onChange={{action this.setSelection}}
@dropdownClass="dropdown-options"
as |option|>
<span class="ember-power-select-prefix">{{@label}}: </span>
<span class="dropdown-label" data-test-dropdown-option={{option.key}}>{{option.label}}</span>
</PowerSelect>
</div>