mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
fix(edge): introduce pause and rollback status [EE-5992] (#10465)
This commit is contained in:
parent
877dc1e236
commit
7c91780eb7
4 changed files with 41 additions and 7 deletions
|
@ -155,6 +155,15 @@ function endpointStatusLabel(statusArray: Array<DeploymentStatus>) {
|
|||
if (status.Type === StatusType.Error) {
|
||||
labels.push('Failed');
|
||||
}
|
||||
if (status.Type === StatusType.PausedDeploying) {
|
||||
labels.push('Paused');
|
||||
}
|
||||
if (status.Type === StatusType.RollingBack) {
|
||||
labels.push('Rolling Back');
|
||||
}
|
||||
if (status.Type === StatusType.RolledBack) {
|
||||
labels.push('Rolled Back');
|
||||
}
|
||||
});
|
||||
|
||||
if (!labels.length) {
|
||||
|
@ -283,6 +292,9 @@ function getStateColor(type: StatusType): 'orange' | 'green' | 'red' {
|
|||
case StatusType.Pending:
|
||||
case StatusType.Deploying:
|
||||
case StatusType.Removing:
|
||||
case StatusType.PausedDeploying:
|
||||
case StatusType.RollingBack:
|
||||
case StatusType.RolledBack:
|
||||
default:
|
||||
return 'orange';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue