console: fix UI for auto-cleanup event trigger on modify page

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6164
GitOrigin-RevId: c1683c72f487d17e2fc46677b205cde862fe9663
This commit is contained in:
Varun Choudhary 2022-10-03 17:25:58 +05:30 committed by hasura-bot
parent 6515ae8dbe
commit 1635ddd607

View File

@ -366,6 +366,18 @@ const Modify: React.FC<Props> = props => {
currentTrigger={currentTrigger}
save={saveWrapper('retry_conf')}
/>
<hr className="my-md" />
{isProConsole(window.__env) && (
<div className="mb-md">
<AutoCleanupForm
onChange={setState.cleanupConfig}
cleanupConfig={
state?.cleanupConfig || defaultState.cleanupConfig
}
/>
<hr className="my-md" />
</div>
)}
<HeadersEditor
headers={state.headers}
setHeaders={setState.headers}
@ -388,16 +400,6 @@ const Modify: React.FC<Props> = props => {
requestUrlTransformOnChange={requestUrlTransformOnChange}
requestPayloadTransformOnChange={requestPayloadTransformOnChange}
/>
{isProConsole(window.__env) && (
<div className="mb-md">
<AutoCleanupForm
onChange={setState.cleanupConfig}
cleanupConfig={
state?.cleanupConfig || defaultState.cleanupConfig
}
/>
</div>
)}
{!readOnlyMode && (
<div className="mb-md">
<span className="mr-md">