style(containers): update label color for unhealthy containers (#1677)

pull/1678/head
Anthony Lapenna 2018-02-28 05:54:13 +01:00 committed by GitHub
parent 9b80b6adb2
commit e065bd4a47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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