mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Show only relevant MIB graphs
This reduces noise in the drop-down by only displaying MIB graphs defined for the device.
This commit is contained in:
@@ -64,7 +64,7 @@ else {
|
||||
onchange="window.open(this.options[this.selectedIndex].value,'_top')" >
|
||||
<?php
|
||||
|
||||
foreach (get_graph_subtypes($type) as $avail_type) {
|
||||
foreach (get_graph_subtypes($type, $device) as $avail_type) {
|
||||
echo("<option value='".generate_url($vars, array('type' => $type."_".$avail_type, 'page' => "graphs"))."'");
|
||||
if ($avail_type == $subtype) {
|
||||
echo(" selected");
|
||||
|
||||
Reference in New Issue
Block a user