Added messages, fixed light property, more
This commit is contained in:
@@ -54,4 +54,16 @@ export function stateToColor(state) {
|
||||
case 3:
|
||||
return "status-error";
|
||||
}
|
||||
}
|
||||
|
||||
export function msgToColor(msg) {
|
||||
if (msg.match(/\[INFO\]/)) {
|
||||
return "status-ok";
|
||||
} else if (msg.match(/\[WARNING\]/)) {
|
||||
return "status-warning";
|
||||
} else if (msg.match(/\[ERROR\]/)) {
|
||||
return "status-error";
|
||||
} else {
|
||||
return "status-unknown";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user