From 2b0056b7c5caa3167ec564fa551ad314441a4519 Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" <74361521+FatihKoz@users.noreply.github.com> Date: Tue, 12 Jan 2021 16:24:50 +0300 Subject: [PATCH] Added the ability to enable/disable flight table display below the map (#983) * LiveMap Widget Upgrade Added the ability to enable/disable flight table display below the map. Default is on * Update LiveMap.php * Update LiveMap.php * Update live_map.blade.php --- app/Widgets/LiveMap.php | 1 + resources/views/layouts/default/widgets/live_map.blade.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Widgets/LiveMap.php b/app/Widgets/LiveMap.php index 514c6a8e..dcfaf780 100644 --- a/app/Widgets/LiveMap.php +++ b/app/Widgets/LiveMap.php @@ -14,6 +14,7 @@ class LiveMap extends Widget protected $config = [ 'height' => '800px', 'width' => '100%', + 'table' => true, ]; /** diff --git a/resources/views/layouts/default/widgets/live_map.blade.php b/resources/views/layouts/default/widgets/live_map.blade.php index 2a54ba83..35f08f0e 100644 --- a/resources/views/layouts/default/widgets/live_map.blade.php +++ b/resources/views/layouts/default/widgets/live_map.blade.php @@ -64,6 +64,7 @@ +@if($config['table'] === true)
{{-- @@ -95,7 +96,7 @@ and being mindful of the rivets bindings {{-- Show the full airport name on hover --}}