mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
make namespace filter multi select and change onChange
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
6b231c97aa
commit
46f58bc3c7
1 file changed
+2
-1
@@ -91,7 +91,8 @@ export class NamespaceSelectFilter extends React.Component {
|
||||
closeMenuOnSelect={false}
|
||||
isOptionSelected={() => false}
|
||||
controlShouldRenderValue={false}
|
||||
onChange={({ value: namespace }: SelectOption) => toggleContext(namespace)}
|
||||
isMulti
|
||||
onChange={([{ value }]: SelectOption[]) => toggleContext(value)}
|
||||
formatOptionLabel={({ value: namespace }: SelectOption) => {
|
||||
const isSelected = hasContext(namespace);
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user