mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Convert Virtual Machine pages to Laravel (#12287)
* Convert Virtual Machine pages to Laravel * wip * wip * wip * wip * wip * wip * delete * wip * wip * move powerStateLabel
This commit is contained in:
@ -79,7 +79,7 @@ class DeviceController extends Controller
|
||||
}
|
||||
|
||||
$alert_class = $device->disabled ? 'alert-info' : ($device->status ? '' : 'alert-danger');
|
||||
$parent_id = Vminfo::query()->whereIn('vmwVmDisplayName', [$device->hostname, $device->hostname . '.' . Config::get('mydomain')])->value('device_id');
|
||||
$parent_id = Vminfo::guessFromDevice($device)->value('device_id');
|
||||
$overview_graphs = $this->buildDeviceGraphArrays($device);
|
||||
|
||||
$tabs = array_map(function ($class) {
|
||||
|
Reference in New Issue
Block a user