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:
parent
75f165d1ff
commit
9a85246631
1 changed files with 10 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue