Fixed typos in default blade that cause components to not show up for non-superadmins

This commit is contained in:
snipe 2018-01-17 06:27:23 -08:00
parent 91bca5fcba
commit 24b356dba4

View file

@ -479,15 +479,15 @@
</a> </a>
</li> </li>
@endcan @endcan
@can('view', \App\Models\Component::class) @can('view', \App\Models\Consumable::class)
<li{!! (Request::is('consunmables*') ? ' class="active"' : '') !!}> <li{!! (Request::is('consumables*') ? ' class="active"' : '') !!}>
<a href="{{ url('consumables') }}"> <a href="{{ url('consumables') }}">
<i class="fa fa-tint"></i> <i class="fa fa-tint"></i>
<span>{{ trans('general.consumables') }}</span> <span>{{ trans('general.consumables') }}</span>
</a> </a>
</li> </li>
@endcan @endcan
@can('view', \App\Models\Components::class) @can('view', \App\Models\Component::class)
<li{!! (Request::is('components*') ? ' class="active"' : '') !!}> <li{!! (Request::is('components*') ? ' class="active"' : '') !!}>
<a href="{{ route('components.index') }}"> <a href="{{ route('components.index') }}">
<i class="fa fa-hdd-o"></i> <i class="fa fa-hdd-o"></i>