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:
parent
9c2d2cd412
commit
ef12cef6aa
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<div class="tw-inline-block">
|
||||
{{ $slot }}
|
||||
</div>
|
Loading…
Reference in New Issue