mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
3
resources/views/components/nopopup.blade.php
Normal file
3
resources/views/components/nopopup.blade.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="tw-inline-block">
|
||||
{{ $slot }}
|
||||
</div>
|
Reference in New Issue
Block a user