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>
This commit is contained in:
Tony Murray 2023-10-31 10:12:17 -05:00 committed by GitHub
parent 9c2d2cd412
commit ef12cef6aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,7 @@
namespace App\View\Components;
use Illuminate\View\Component;
use LibreNMS\Config;
class Popup extends Component
{
@ -13,6 +14,8 @@ class Popup extends Component
*/
public function render()
{
return view('components.popup');
return Config::get('web_mouseover', true)
? view('components.popup')
: view('components.nopopup');
}
}

View File

@ -0,0 +1,3 @@
<div class="tw-inline-block">
{{ $slot }}
</div>