Skip to content

Commit

Permalink
[Fleet] Allow back previously disabled bulk actions (elastic#176485)
Browse files Browse the repository at this point in the history
Patch for elastic#171914

## Summary
In elastic#175318 I had disabled the bulk
actions when the count was incorrect (negative). This was not a good
idea, since some of those actions could still be applied (like
unenrolling) even if the shown count is not correct. Here I'm removing
that check.



### Checklist

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
criamico and kibanamachine authored Feb 8, 2024
1 parent d8f4422 commit b620110
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const AgentBulkActions: React.FunctionComponent<Props> = ({
const atLeastOneActiveAgentSelected =
selectionMode === 'manual'
? !!selectedAgents.find((agent) => agent.active)
: agentCount > 0 && shownAgents > inactiveShownAgents;
: shownAgents > inactiveShownAgents;
const agents = selectionMode === 'manual' ? selectedAgents : selectionQuery;

const [tagsPopoverButton, setTagsPopoverButton] = useState<HTMLElement>();
Expand Down

0 comments on commit b620110

Please sign in to comment.