From 3a51af21b7954949b3f462ed633ce2280e3e517b Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Tue, 5 Jan 2021 10:09:01 -0800 Subject: [PATCH] fix(core/deploymentStrategy): do not show highlander preview in deploy stage config (only show in clone dialog) --- .../strategies/highlander/HighlanderPreview.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/scripts/modules/core/src/deploymentStrategy/strategies/highlander/HighlanderPreview.tsx b/app/scripts/modules/core/src/deploymentStrategy/strategies/highlander/HighlanderPreview.tsx index a7cb721ce44..ceb017dd52f 100644 --- a/app/scripts/modules/core/src/deploymentStrategy/strategies/highlander/HighlanderPreview.tsx +++ b/app/scripts/modules/core/src/deploymentStrategy/strategies/highlander/HighlanderPreview.tsx @@ -8,6 +8,11 @@ import { HealthCounts } from 'core/healthCounts'; import { IDeploymentStrategyAdditionalFieldsProps } from '../../deploymentStrategy.registry'; export function HighlanderPreview(props: IDeploymentStrategyAdditionalFieldsProps) { + const isPipeline = props.command.viewState.mode === 'editPipeline'; + return isPipeline ? null : ; +} + +export function HighlanderPreviewCmp(props: IDeploymentStrategyAdditionalFieldsProps) { const { credentials, region, application, stack, freeFormDetails } = props.command; const cluster = NameUtils.getClusterName(application, stack, freeFormDetails); const fetchit = useData(() => REST('/applications').path(application, 'serverGroups').get(), [], []);