feat(cp-frontend): don't show env toggle when no variables set
This commit is contained in:
parent
f38a0c5907
commit
ccf1fd6f9a
@ -358,18 +358,20 @@ export const Review = ({
|
||||
<ImageTitle>Image:</ImageTitle> <Image>{config.image}</Image>
|
||||
</dt>
|
||||
</Dl>
|
||||
<ServiceDivider />
|
||||
<ServiceEnvironmentTitle
|
||||
expanded={environmentToggles[name]}
|
||||
onClick={() => onEnvironmentToggle(name)}
|
||||
>
|
||||
Environment variables{' '}
|
||||
<EnvironmentChevron
|
||||
down={!environmentToggles[name]}
|
||||
up={environmentToggles[name]}
|
||||
/>
|
||||
</ServiceEnvironmentTitle>
|
||||
{environmentToggles[name]
|
||||
{config.environment && config.environment.length ? <ServiceDivider /> : null}
|
||||
{config.environment && config.environment.length ?
|
||||
<ServiceEnvironmentTitle
|
||||
expanded={environmentToggles[name]}
|
||||
onClick={() => onEnvironmentToggle(name)}
|
||||
>
|
||||
Environment variables{' '}
|
||||
<EnvironmentChevron
|
||||
down={!environmentToggles[name]}
|
||||
up={environmentToggles[name]}
|
||||
/>
|
||||
</ServiceEnvironmentTitle>
|
||||
: null}
|
||||
{config.environment && config.environment.length && environmentToggles[name]
|
||||
? <EnvironmentReview environment={config.environment} />
|
||||
: null}
|
||||
</ServiceCard>
|
||||
|
Loading…
Reference in New Issue
Block a user