From 4911f6799d92927571cbea23dbeb9f5a4ac4d545 Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" <74361521+FatihKoz@users.noreply.github.com> Date: Tue, 26 Jan 2021 00:04:43 +0300 Subject: [PATCH] Fix for ACARS config download button not working #919 (#1009) * Fix For Acars Config Download Button No Working Bug #919 PR fixes the Acars Config Download button not showing up at user profile. Also fixes the problem where Generate New Api Key button not following user selections and generating a new key even if user clicks cancel. * Style Fix for ? and ! Fix the typo :) --- app/Http/Controllers/Frontend/ProfileController.php | 3 ++- resources/views/layouts/default/profile/index.blade.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Frontend/ProfileController.php b/app/Http/Controllers/Frontend/ProfileController.php index 3780f448..8b39f4fc 100644 --- a/app/Http/Controllers/Frontend/ProfileController.php +++ b/app/Http/Controllers/Frontend/ProfileController.php @@ -52,7 +52,7 @@ class ProfileController extends Controller { // Is the ACARS module enabled? $acars_enabled = false; - $acars = Module::find('VMSACARS'); + $acars = Module::find('VMSAcars'); if ($acars) { $acars_enabled = $acars->isEnabled(); } @@ -95,6 +95,7 @@ class ProfileController extends Controller 'user' => $user, 'userFields' => $userFields, 'airports' => $airports, + 'acars' => $this->acarsEnabled(), ]); } diff --git a/resources/views/layouts/default/profile/index.blade.php b/resources/views/layouts/default/profile/index.blade.php index 9290d89e..05336dfc 100644 --- a/resources/views/layouts/default/profile/index.blade.php +++ b/resources/views/layouts/default/profile/index.blade.php @@ -133,11 +133,11 @@