Skip to content

Commit

Permalink
fix(core/deploymentStrategy): do not show highlander preview in deplo…
Browse files Browse the repository at this point in the history
…y stage config (only show in clone dialog)
  • Loading branch information
christopherthielen authored and mergify[bot] committed Jan 5, 2021
1 parent 8be06a0 commit 3a51af2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 : <HighlanderPreviewCmp {...props} />;
}

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<IServerGroup[]>(), [], []);
Expand Down

0 comments on commit 3a51af2

Please sign in to comment.