1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-18 21:09:40 +02:00

fix(edgestack): display deploying status by default after creating edgestack [BE-11924] (#783)

This commit is contained in:
Oscar Zhou 2025-06-07 09:06:57 +12:00 committed by GitHub
parent 75f165d1ff
commit 9a85246631

View file

@ -65,7 +65,7 @@ function getStatus(
}; };
} }
if (envStatus.length < numDeployments) { if (!envStatus.length) {
return { return {
label: 'Deploying', label: 'Deploying',
icon: Loader2, icon: Loader2,
@ -84,6 +84,15 @@ function getStatus(
}; };
} }
if (envStatus.length < numDeployments) {
return {
label: 'Deploying',
icon: Loader2,
spin: true,
mode: 'primary',
};
}
const allCompleted = envStatus.every((s) => s.Type === StatusType.Completed); const allCompleted = envStatus.every((s) => s.Type === StatusType.Completed);
if (allCompleted) { if (allCompleted) {