mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fix for client portal header navigation
This commit is contained in:
parent
d71cf4dd49
commit
af4cb1dac8
@ -483,6 +483,7 @@ class ClientPortalController extends BaseController
|
|||||||
return response()->view('error', [
|
return response()->view('error', [
|
||||||
'error' => $error ?: trans('texts.invoice_not_found'),
|
'error' => $error ?: trans('texts.invoice_not_found'),
|
||||||
'hideHeader' => true,
|
'hideHeader' => true,
|
||||||
|
'account' => $this->getContact()->account,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
<div id="navbar" class="collapse navbar-collapse">
|
<div id="navbar" class="collapse navbar-collapse">
|
||||||
@if (!isset($account) || $account->isNinjaAccount() || $account->enable_client_portal)
|
@if (!isset($account) || $account->isNinjaAccount() || $account->enable_client_portal)
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
@if (!isset($account) || $account->enable_client_portal_dashboard)
|
@if (isset($account) && $account->enable_client_portal_dashboard)
|
||||||
<li {{ Request::is('*client/dashboard') ? 'class="active"' : '' }}>
|
<li {{ Request::is('*client/dashboard') ? 'class="active"' : '' }}>
|
||||||
{!! link_to('/client/dashboard', trans('texts.dashboard') ) !!}
|
{!! link_to('/client/dashboard', trans('texts.dashboard') ) !!}
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user