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';
|
'use strict';
|
||||||
return function (text) {
|
return function (text) {
|
||||||
var status = _.toLower(text);
|
var status = _.toLower(text);
|
||||||
if (includeString(status, ['paused', 'starting'])) {
|
if (includeString(status, ['paused', 'starting', 'unhealthy'])) {
|
||||||
return 'warning';
|
return 'warning';
|
||||||
} else if (includeString(status, ['created'])) {
|
} else if (includeString(status, ['created'])) {
|
||||||
return 'info';
|
return 'info';
|
||||||
} else if (includeString(status, ['stopped', 'unhealthy', 'dead', 'exited'])) {
|
} else if (includeString(status, ['stopped', 'dead', 'exited'])) {
|
||||||
return 'danger';
|
return 'danger';
|
||||||
}
|
}
|
||||||
return 'success';
|
return 'success';
|
||||||
|
|
Loading…
Reference in New Issue