mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Respect web_mouseover setting in popup component fixes #15496 * Apply fixes from StyleCI --------- Co-authored-by: StyleCI Bot <bot@styleci.io>
22 lines
445 B
PHP
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');
|
|
}
|
|
}
|