Skip to content

Commit

Permalink
Merge pull request #153 from mercedes-benz/develop
Browse files Browse the repository at this point in the history
Hide create rups package button if response exists
  • Loading branch information
m-o-n-i-s-h authored Nov 25, 2024
2 parents ed625d0 + 9f7c856 commit 1a02fab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/chart/table/TableChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,11 @@ export const NeoTableChart = (props: ChartProps) => {

const apiCallButton = () => (
<Stack direction='row' spacing={2} justifyContent='flex-end' marginRight={2}>
<Button variant='outlined' size='small' onClick={handleApiCall} disabled={isApiLoading}>
{isApiLoading ? 'Loading...' : props.settings?.sendRequestButtonName || 'send'}
</Button>
{!props.settings?.apiSpec.response && (
<Button variant='outlined' size='small' onClick={handleApiCall} disabled={isApiLoading}>
{isApiLoading ? 'Loading...' : props.settings?.sendRequestButtonName || 'send'}
</Button>
)}
{props.settings?.apiSpec.response && (
<Button
size='small'
Expand Down

0 comments on commit 1a02fab

Please sign in to comment.