mirror of https://github.com/portainer/portainer
fix(edgestack): display deploying status by default after creating edgestack [BE-11924] (#783)
parent
75f165d1ff
commit
9a85246631
|
@ -65,7 +65,7 @@ function getStatus(
|
|||
};
|
||||
}
|
||||
|
||||
if (envStatus.length < numDeployments) {
|
||||
if (!envStatus.length) {
|
||||
return {
|
||||
label: 'Deploying',
|
||||
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);
|
||||
|
||||
if (allCompleted) {
|
||||
|
|
Loading…
Reference in New Issue