Skip to content

Commit

Permalink
fix: only show addon delete button when editing addons (#7930)
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleek authored Aug 20, 2024
1 parent 0d97f8b commit 37dd2eb
Showing 1 changed file with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37dd2eb

Please sign in to comment.