mirror of
https://github.com/harness/drone.git
synced 2025-05-04 00:23:23 +08:00
feat: [AH-885]: fix issue with showing request and response body of webhook execution (#3448)
* feat: [AH-885]: fix issue with showing request and response body of webhook execution
This commit is contained in:
parent
06c48f3d3d
commit
b5e78f3300
@ -37,3 +37,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.drawerContainer {
|
||||
overflow: auto;
|
||||
}
|
||||
|
@ -16,4 +16,5 @@
|
||||
|
||||
/* eslint-disable */
|
||||
// This is an auto-generated file
|
||||
export declare const drawerContainer: string
|
||||
export declare const tabsContainer: string
|
||||
|
@ -110,7 +110,7 @@ export default function WebhookExecutionDetailsDrawer(props: WebhookExecutionDet
|
||||
</RbacButton>
|
||||
</Layout.Horizontal>
|
||||
}>
|
||||
<Container>
|
||||
<Container className={css.drawerContainer}>
|
||||
<Layout.Vertical padding="large" spacing="medium">
|
||||
<Layout.Horizontal spacing="small" flex={{ alignItems: 'center', justifyContent: 'flex-start' }}>
|
||||
<Text font={{ variation: FontVariation.CARD_TITLE }}>
|
||||
@ -166,7 +166,7 @@ export default function WebhookExecutionDetailsDrawer(props: WebhookExecutionDet
|
||||
<CommandBlock
|
||||
darkmode
|
||||
ignoreWhiteSpaces={false}
|
||||
commandSnippet={prettifyManifestJSON(data?.request ?? {})}
|
||||
commandSnippet={prettifyManifestJSON(data?.request?.body ?? {})}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
@ -177,7 +177,7 @@ export default function WebhookExecutionDetailsDrawer(props: WebhookExecutionDet
|
||||
<CommandBlock
|
||||
darkmode
|
||||
ignoreWhiteSpaces={false}
|
||||
commandSnippet={prettifyManifestJSON(data?.response ?? {})}
|
||||
commandSnippet={prettifyManifestJSON(data?.response?.body ?? {})}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user