INclude monitor Name in monitors array, because it useful to show monitors by name instead of id

pull/3829/head
Isaac Connor 2024-02-11 19:13:48 -05:00
parent dc556c0f70
commit 8ffbc1d6f0
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,8 @@ const monitors = new Array();
foreach ($monitors as $m) { foreach ($monitors as $m) {
?> ?>
monitors[monitors.length] = { monitors[monitors.length] = {
'id': <?php echo $m->Id() ?> 'id': <?php echo $m->Id() ?>,
'name': '<?php echo $m->Name() ?>'
}; };
<?php <?php
} // end foreach monitor } // end foreach monitor