1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-26 01:17:00 +02:00

fix: only show addon delete button when editing addons (#7930)

This commit is contained in:
David Leek 2024-08-20 14:36:27 +02:00 committed by GitHub
parent 0d97f8b7c1
commit 37dd2ebc4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -430,12 +430,19 @@ export const IntegrationForm: VFC<IntegrationFormProps> = ({
/>
</div>
</StyledConfigurationSection>
<Divider />
<section>
<IntegrationDelete
id={(formValues as AddonSchema).id}
/>
</section>
<ConditionallyRender
condition={editMode}
show={
<>
<Divider />
<section>
<IntegrationDelete
id={(formValues as AddonSchema).id}
/>
</section>
</>
}
/>
</StyledContainer>
</StyledForm>
<IntegrationEventsModal