mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Merge pull request #11149 from Godmartinz/gh11129_setting_disclosure_arrow
Fixed #11129 - settings treeview won't stay active.
This commit is contained in:
commit
70344cc02e
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace App\Helpers;
|
||||
|
||||
use App\Models\Accessory;
|
||||
use App\Models\Component;
|
||||
use App\Models\Consumable;
|
||||
|
@ -1089,4 +1088,10 @@ class Helper
|
|||
|
||||
return $bytes;
|
||||
}
|
||||
public static function SettingUrls(){
|
||||
$settings=['#','fields.index', 'statuslabels.index', 'models.index', 'categories.index', 'manufacturers.index', 'suppliers.index', 'departments.index', 'locations.index', 'companies.index', 'depreciations.index'];
|
||||
|
||||
return $settings;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -386,7 +386,7 @@
|
|||
<!-- Sidebar toggle button-->
|
||||
</header>
|
||||
|
||||
<!-- Left side column. contains the logo and sidebar -->
|
||||
<!-- Left side column. contains the logo and sidebar -->
|
||||
<aside class="main-sidebar">
|
||||
<!-- sidebar: style can be found in sidebar.less -->
|
||||
<section class="sidebar">
|
||||
|
@ -584,8 +584,8 @@
|
|||
@endcan
|
||||
|
||||
@can('backend.interact')
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<li class="treeview {!! in_array(Request::route()->getName(),App\Helpers\Helper::SettingUrls()) ? ' active': '' !!}">
|
||||
<a href="#" id="settings" class="">
|
||||
<i class="fas fa-cog" aria-hidden="true"></i>
|
||||
<span>{{ trans('general.settings') }}</span>
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
|
@ -616,7 +616,6 @@
|
|||
</li>
|
||||
@endcan
|
||||
|
||||
|
||||
@can('view', \App\Models\Category::class)
|
||||
<li>
|
||||
<a href="{{ route('categories.index') }}" {{ (Request::is('/categories') ? ' class="active"' : '') }}>
|
||||
|
@ -672,9 +671,7 @@
|
|||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
@endcan
|
||||
|
||||
|
|
Loading…
Reference in a new issue