e8593ec1bb
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.
14 lines
333 B
JavaScript
14 lines
333 B
JavaScript
import Component from '@glimmer/component';
|
|
import { action } from '@ember/object';
|
|
|
|
export default class SingleSelectDropdown extends Component {
|
|
get activeOption() {
|
|
return this.args.options.findBy('key', this.args.selection);
|
|
}
|
|
|
|
@action
|
|
setSelection({ key }) {
|
|
this.args.onSelect && this.args.onSelect(key);
|
|
}
|
|
}
|