Enable "Show example payload" buttons in GitOps mode (#46355)

We allow this already with "Preview payload" under Settings >
Integrations > MDM > End user migration workflow.

**Related issue:** Resolves #44719

# Checklist for submitter

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.


## Testing

- [x] QA'd all new/changed functionality manually
This commit is contained in:
Steven Palmesano
2026-05-29 05:27:46 -05:00
committed by GitHub
parent 02b6d081fc
commit 121a6df417
3 changed files with 3 additions and 2 deletions
@@ -0,0 +1 @@
* Fixed "Show example payload" button being incorrectly disabled in GitOps mode on the "Other workflows" and "Calendar events" policy automation modals.
@@ -275,7 +275,7 @@ const CalendarEventsModal = ({
onClick={() => {
setShowExamplePayload(!showExamplePayload);
}}
disabled={!formData.enabled || gitOpsModeEnabled}
disabled={!formData.enabled}
/>
{showExamplePayload && renderExamplePayload()}
</>
@@ -253,7 +253,7 @@ const OtherWorkflowsModal = ({
showText="Show example payload"
caretPosition="after"
onClick={() => setShowExamplePayload(!showExamplePayload)}
disabled={!isPolicyAutomationsEnabled || gitOpsModeEnabled}
disabled={!isPolicyAutomationsEnabled}
/>
{showExamplePayload && <ExamplePayload />}
</>