Skip to content

Commit d09748c

Browse files
committed
chore: update gitops condition in app details component
1 parent 7073dc3 commit d09748c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/v2/appDetails/AppDetails.component.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ const AppDetailsComponent = ({
7171
const isVirtualEnv = useRef(appDetails?.isVirtualEnvironment)
7272
const location = useLocation()
7373
const history = useHistory()
74-
const isGitOps = appDetails?.deploymentAppType === DeploymentAppTypes.ARGO
75-
const isManifestDownload = appDetails?.deploymentAppType === DeploymentAppTypes.MANIFEST_DOWNLOAD
7674

7775
const [deploymentStatusDetailsBreakdownData, setDeploymentStatusDetailsBreakdownData] =
7876
useState<DeploymentStatusDetailsBreakdownDataType>({
@@ -108,6 +106,12 @@ const AppDetailsComponent = ({
108106
useEffect(() => {
109107
// Get deployment status timeline on ArgoCD apps in devtron helm apps
110108
// i.e. Devtron Helm app deployed through GitOps /Manifest Download
109+
const isGitOps =
110+
appDetails?.deploymentAppType === DeploymentAppTypes.ARGO ||
111+
appDetails?.deploymentAppType === DeploymentAppTypes.FLUX
112+
113+
const isManifestDownload = appDetails?.deploymentAppType === DeploymentAppTypes.MANIFEST_DOWNLOAD
114+
111115
if ((isGitOps || isManifestDownload) && !isExternalApp) {
112116
getDeploymentDetailStepsData()
113117
}

0 commit comments

Comments
 (0)