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:
@@ -0,0 +1 @@
|
||||
* Fixed "Show example payload" button being incorrectly disabled in GitOps mode on the "Other workflows" and "Calendar events" policy automation modals.
|
||||
+1
-1
@@ -275,7 +275,7 @@ const CalendarEventsModal = ({
|
||||
onClick={() => {
|
||||
setShowExamplePayload(!showExamplePayload);
|
||||
}}
|
||||
disabled={!formData.enabled || gitOpsModeEnabled}
|
||||
disabled={!formData.enabled}
|
||||
/>
|
||||
{showExamplePayload && renderExamplePayload()}
|
||||
</>
|
||||
|
||||
+1
-1
@@ -253,7 +253,7 @@ const OtherWorkflowsModal = ({
|
||||
showText="Show example payload"
|
||||
caretPosition="after"
|
||||
onClick={() => setShowExamplePayload(!showExamplePayload)}
|
||||
disabled={!isPolicyAutomationsEnabled || gitOpsModeEnabled}
|
||||
disabled={!isPolicyAutomationsEnabled}
|
||||
/>
|
||||
{showExamplePayload && <ExamplePayload />}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user