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

View File

@ -1781,6 +1781,10 @@ class NetworkMap
}
}
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(
@ -1788,6 +1792,7 @@ class NetworkMap
$item['status_end']
)
);
}
// XXX: Compatibility with Tooltipster - Simple map controller.
if ($this->useTooltipster) {