* 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 :)
This commit is contained in:
@@ -52,7 +52,7 @@ class ProfileController extends Controller
|
|||||||
{
|
{
|
||||||
// Is the ACARS module enabled?
|
// Is the ACARS module enabled?
|
||||||
$acars_enabled = false;
|
$acars_enabled = false;
|
||||||
$acars = Module::find('VMSACARS');
|
$acars = Module::find('VMSAcars');
|
||||||
if ($acars) {
|
if ($acars) {
|
||||||
$acars_enabled = $acars->isEnabled();
|
$acars_enabled = $acars->isEnabled();
|
||||||
}
|
}
|
||||||
@@ -95,6 +95,7 @@ class ProfileController extends Controller
|
|||||||
'user' => $user,
|
'user' => $user,
|
||||||
'userFields' => $userFields,
|
'userFields' => $userFields,
|
||||||
'airports' => $airports,
|
'airports' => $airports,
|
||||||
|
'acars' => $this->acarsEnabled(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -133,11 +133,11 @@
|
|||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
@if (isset($acars) && $acars === true)
|
@if (isset($acars) && $acars === true)
|
||||||
<a href="{{ route('frontend.profile.acars') }}" class="btn btn-primary"
|
<a href="{{ route('frontend.profile.acars') }}" class="btn btn-primary"
|
||||||
onclick="alert('Save to \'My Documents/phpVMS\'')">ACARS Config</a>
|
onclick="alert('Copy or Save to \'My Documents/phpVMS\'')">ACARS Config</a>
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
<a href="{{ route('frontend.profile.regen_apikey') }}" class="btn btn-warning"
|
<a href="{{ route('frontend.profile.regen_apikey') }}" class="btn btn-warning"
|
||||||
onclick="return confirm({{ __('Are you sure? This will reset your API key.') }})">@lang('profile.newapikey')</a>
|
onclick="return confirm('Are you sure? This will reset your API key!')">@lang('profile.newapikey')</a>
|
||||||
|
|
||||||
<a href="{{ route('frontend.profile.edit', [$user->id]) }}"
|
<a href="{{ route('frontend.profile.edit', [$user->id]) }}"
|
||||||
class="btn btn-primary">@lang('common.edit')</a>
|
class="btn btn-primary">@lang('common.edit')</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user