mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 12:25:22 +02:00
fix(edge-stack): add completed status EE-6210 (#11635)
This commit is contained in:
parent
0be1888f11
commit
549579d935
8 changed files with 62 additions and 21 deletions
|
@ -66,6 +66,8 @@ function getTooltip(count: number, total: number, type?: StatusType) {
|
|||
switch (type) {
|
||||
case StatusType.Running:
|
||||
return 'deployments running';
|
||||
case StatusType.Completed:
|
||||
return 'deployments completed';
|
||||
case StatusType.DeploymentReceived:
|
||||
return 'deployments received';
|
||||
case StatusType.Error:
|
||||
|
|
|
@ -84,6 +84,16 @@ function getStatus(
|
|||
};
|
||||
}
|
||||
|
||||
const allCompleted = envStatus.every((s) => s.Type === StatusType.Completed);
|
||||
|
||||
if (allCompleted) {
|
||||
return {
|
||||
label: 'Completed',
|
||||
icon: CheckCircle,
|
||||
mode: 'success',
|
||||
};
|
||||
}
|
||||
|
||||
const allRunning = envStatus.every(
|
||||
(s) =>
|
||||
s.Type === StatusType.Running ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue