1
0
Fork 0
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:
Oscar Zhou 2023-10-19 11:26:02 +13:00 committed by GitHub
parent 877dc1e236
commit 7c91780eb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 7 deletions

View file

@ -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';
}