custom link colors

Former-commit-id: 44a7df6e814679cfff1a0489374c25edcc9ab52c
This commit is contained in:
fbsanchez 2019-03-22 15:00:02 +01:00
parent 4910da5e31
commit 9ef66a11c4
1 changed files with 12 additions and 7 deletions

View File

@ -1781,13 +1781,18 @@ class NetworkMap
}
}
// Use worst case to set link color.
$item['link_color'] = self::getColorByStatus(
self::getWorstStatus(
$item['status_start'],
$item['status_end']
)
);
if (isset($rel['link_color'])) {
// Direct color definition.
$item['link_color'] = $rel['link_color'];
} else {
// Use worst case to set link color.
$item['link_color'] = self::getColorByStatus(
self::getWorstStatus(
$item['status_start'],
$item['status_end']
)
);
}
// XXX: Compatibility with Tooltipster - Simple map controller.
if ($this->useTooltipster) {