mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
UI: Fix inclusion condition for 'Other workflows' policy automation (#31358)
## #31333 - Include the "Other workflows" Policy automation option for all team scenarios _except_ No team in regular (non-Primo) mode - Manually confirmed this option is present in the intended situations - Manually confirmed that Primo mode still does contain this option  - [x] QA'd all new/changed functionality manually For unreleased bug fixes in a release candidate, one of: - [x] Confirmed that the fix is not expected to adversely impact load test results Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
parent
77aa8da22b
commit
ee5cadfe71
1 changed files with 4 additions and 1 deletions
|
|
@ -139,6 +139,7 @@ const ManagePolicyPage = ({
|
|||
currentTeamName,
|
||||
currentTeamSummary,
|
||||
isAllTeamsSelected,
|
||||
isAnyTeamSelected,
|
||||
isTeamAdmin,
|
||||
isTeamMaintainer,
|
||||
isRouteOk,
|
||||
|
|
@ -1235,7 +1236,9 @@ const ManagePolicyPage = ({
|
|||
placeholder="Manage automations"
|
||||
options={
|
||||
hasPoliciesToAutomate
|
||||
? getAutomationsDropdownOptions(isAllTeamsSelected || isPrimoMode) // include "Other workflows" when all teams is selected and when in Primo mode
|
||||
? getAutomationsDropdownOptions(
|
||||
isAllTeamsSelected || isAnyTeamSelected || isPrimoMode
|
||||
) // include "Other workflows" when all teams is selected, when a team other than No team is selected, and when in Primo mode (No team will be selected)
|
||||
: []
|
||||
}
|
||||
variant="button"
|
||||
|
|
|
|||
Loading…
Reference in a new issue