mirror of https://github.com/portainer/portainer
style(containers): update label color for unhealthy containers (#1677)
parent
9b80b6adb2
commit
e065bd4a47
|
@ -42,11 +42,11 @@ angular.module('portainer.docker')
|
|||
'use strict';
|
||||
return function (text) {
|
||||
var status = _.toLower(text);
|
||||
if (includeString(status, ['paused', 'starting'])) {
|
||||
if (includeString(status, ['paused', 'starting', 'unhealthy'])) {
|
||||
return 'warning';
|
||||
} else if (includeString(status, ['created'])) {
|
||||
return 'info';
|
||||
} else if (includeString(status, ['stopped', 'unhealthy', 'dead', 'exited'])) {
|
||||
} else if (includeString(status, ['stopped', 'dead', 'exited'])) {
|
||||
return 'danger';
|
||||
}
|
||||
return 'success';
|
||||
|
|
Loading…
Reference in New Issue