← All changes
|
src/Agent/workflows/content/components/UpdatePostStatusConfirm.jsx
+2
-5
3.1.4
→
3.2.3
View file →
| @@ -7,12 +7,9 @@ | ||
| 7 | 7 | }; |
| 8 | 8 | |
| 9 | 9 | export const UpdatePostStatusConfirm = ({ inputs, onConfirm, onCancel }) => { |
| 10 | 10 | const handleConfirm = () => { |
| 11 | - if (window?.extAgentData?.context) { | |
| 12 | - window.extAgentData.context.postStatus = inputs.updatedStatus; | |
| 13 | - } | |
| 14 | - onConfirm({ data: inputs }); | |
| 11 | + onConfirm({ data: inputs, shouldRefreshPage: true }); | |
| 15 | 12 | }; |
| 16 | 13 | |
| 17 | 14 | const handleCancel = useCallback(() => { |
| 18 | 15 | onCancel(); |
| @@ -18,9 +15,9 @@ | ||
| 18 | 15 | onCancel(); |
| 19 | 16 | }, [onCancel]); |
| 20 | 17 | |
| 21 | 18 | return ( |
| 22 | - <div className="mb-4 ms-12 me-2 flex flex-col rounded-lg border border-gray-300 bg-gray-50"> | |
| 19 | + <div className="mb-4 ms-2 me-2 flex flex-col rounded-lg border border-gray-300 bg-gray-50"> | |
| 23 | 20 | <div className="rounded-lg border-b border-gray-300 bg-white"> |
| 24 | 21 | <div className="p-3"> |
| 25 | 22 | <p className="m-0 p-0 text-sm text-gray-900"> |
| 26 | 23 | {sprintf( |