From 25f227f39c7929e8774a3f1f896c1b09b6eb09b2 Mon Sep 17 00:00:00 2001 From: Nicolas Widart Date: Thu, 14 Sep 2017 22:32:55 +0200 Subject: [PATCH] Update menu ordering in Workshop section. Leaving spots in between for custom modules. --- Modules/Setting/Events/Handlers/RegisterSettingSidebar.php | 2 +- Modules/User/Events/Handlers/RegisterUserSidebar.php | 2 +- Modules/Workshop/Events/Handlers/RegisterWorkshopSidebar.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/Setting/Events/Handlers/RegisterSettingSidebar.php b/Modules/Setting/Events/Handlers/RegisterSettingSidebar.php index aedb70882..64c717032 100644 --- a/Modules/Setting/Events/Handlers/RegisterSettingSidebar.php +++ b/Modules/Setting/Events/Handlers/RegisterSettingSidebar.php @@ -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') diff --git a/Modules/User/Events/Handlers/RegisterUserSidebar.php b/Modules/User/Events/Handlers/RegisterUserSidebar.php index 5945fc7fd..3d5e58eef 100644 --- a/Modules/User/Events/Handlers/RegisterUserSidebar.php +++ b/Modules/User/Events/Handlers/RegisterUserSidebar.php @@ -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') diff --git a/Modules/Workshop/Events/Handlers/RegisterWorkshopSidebar.php b/Modules/Workshop/Events/Handlers/RegisterWorkshopSidebar.php index 6b82edae9..0c5ef9073 100644 --- a/Modules/Workshop/Events/Handlers/RegisterWorkshopSidebar.php +++ b/Modules/Workshop/Events/Handlers/RegisterWorkshopSidebar.php @@ -23,7 +23,7 @@ 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') @@ -31,7 +31,7 @@ public function extendWith(Menu $menu) }); $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')