Files
librenms-librenms/app/View/Components/Popup.php
Tony Murray ef12cef6aa Respect web_mouseover setting in popup component (#15530)
* Respect web_mouseover setting in popup component
fixes #15496

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-10-31 10:12:17 -05:00

22 lines
445 B
PHP

<?php
namespace App\View\Components;
use Illuminate\View\Component;
use LibreNMS\Config;
class Popup extends Component
{
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|\Closure|string
*/
public function render()
{
return Config::get('web_mouseover', true)
? view('components.popup')
: view('components.nopopup');
}
}