mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
get colors from getColorState function (#10956)
This commit is contained in:
@@ -45,7 +45,7 @@ class Mattermost extends Transport
|
||||
$host = $api['url'];
|
||||
$curl = curl_init();
|
||||
$mattermost_msg = strip_tags($obj['msg']);
|
||||
$color = ($obj['state'] == 0 ? '#00FF00' : '#FF0000');
|
||||
$color = self::getColorForState($obj['state']);
|
||||
$data = [
|
||||
'attachments' => [
|
||||
0 => [
|
||||
|
Reference in New Issue
Block a user