[Web UI] fix folder plugin decoration issue for exclamation/question mark

This commit is contained in:
Nicolas Hart 2016-03-29 23:55:43 +02:00
parent 42a657d16c
commit 1672e63e88

View File

@ -23,6 +23,10 @@ glancesApp.service('GlancesPluginFolders', function() {
this.getDecoration = function(folder) {
if (!Number.isInteger(folder.size)) {
return;
}
if (folder.critical !== null && folder.size > (folder.critical * 1000000)) {
return 'critical';
} else if (folder.warning !== null && folder.size > (folder.warning * 1000000)) {