Skip to content

Commit

Permalink
Update menu ordering in Workshop section. Leaving spots in between fo…
Browse files Browse the repository at this point in the history
…r custom modules.
  • Loading branch information
nWidart committed Sep 14, 2017
1 parent 32a73a2 commit 25f227f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Modules/Setting/Events/Handlers/RegisterSettingSidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function extendWith(Menu $menu)
$menu->group(trans('workshop::workshop.title'), function (Group $group) {
$group->item(trans('setting::settings.title.settings'), function (Item $item) {
$item->icon('fa fa-cog');
$item->weight(50);
$item->weight(20);
$item->route('admin.setting.settings.index');
$item->authorize(
$this->auth->hasAccess('setting.settings.index')
Expand Down
2 changes: 1 addition & 1 deletion Modules/User/Events/Handlers/RegisterUserSidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function extendWith(Menu $menu)
{
$menu->group(trans('workshop::workshop.title'), function (Group $group) {
$group->item(trans('user::users.title.users'), function (Item $item) {
$item->weight(0);
$item->weight(10);
$item->icon('fa fa-users');
$item->authorize(
$this->auth->hasAccess('user.users.index') or $this->auth->hasAccess('user.roles.index')
Expand Down
4 changes: 2 additions & 2 deletions Modules/Workshop/Events/Handlers/RegisterWorkshopSidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ public function extendWith(Menu $menu)
);
$group->item(trans('workshop::workshop.modules'), function (Item $item) {
$item->icon('fa fa-cogs');
$item->weight(100);
$item->weight(30);
$item->route('admin.workshop.modules.index');
$item->authorize(
$this->auth->hasAccess('workshop.modules.index')
);
});
$group->item(trans('workshop::workshop.themes'), function (Item $item) {
$item->icon('fa fa-cogs');
$item->weight(101);
$item->weight(40);
$item->route('admin.workshop.themes.index');
$item->authorize(
$this->auth->hasAccess('workshop.themes.index')
Expand Down

0 comments on commit 25f227f

Please sign in to comment.