From 32a73a2d843fdd99a980e1fe6ab86ab41c2cf8dc Mon Sep 17 00:00:00 2001 From: Nicolas Widart Date: Thu, 14 Sep 2017 21:03:56 +0200 Subject: [PATCH] Update menu ordering in Content section. Leaving spots in between for custom modules. --- Modules/Media/Events/Handlers/RegisterMediaSidebar.php | 2 +- Modules/Menu/Events/Handlers/RegisterMenuSidebar.php | 2 +- Modules/Page/Events/Handlers/RegisterPageSidebar.php | 2 +- Modules/Tag/Events/Handlers/RegisterTagSidebar.php | 2 +- .../Translation/Events/Handlers/RegisterTranslationSidebar.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Modules/Media/Events/Handlers/RegisterMediaSidebar.php b/Modules/Media/Events/Handlers/RegisterMediaSidebar.php index c12c6824c..a22e72968 100644 --- a/Modules/Media/Events/Handlers/RegisterMediaSidebar.php +++ b/Modules/Media/Events/Handlers/RegisterMediaSidebar.php @@ -13,7 +13,7 @@ public function extendWith(Menu $menu) { $menu->group(trans('core::sidebar.content'), function (Group $group) { $group->item(trans('media::media.title.media'), function (Item $item) { - $item->weight(2); + $item->weight(20); $item->icon('fa fa-camera'); $item->route('admin.media.media.index'); $item->authorize( diff --git a/Modules/Menu/Events/Handlers/RegisterMenuSidebar.php b/Modules/Menu/Events/Handlers/RegisterMenuSidebar.php index c82b42248..8564efbf2 100644 --- a/Modules/Menu/Events/Handlers/RegisterMenuSidebar.php +++ b/Modules/Menu/Events/Handlers/RegisterMenuSidebar.php @@ -19,7 +19,7 @@ public function extendWith(Menu $menu) $menu->group(trans('core::sidebar.content'), function (Group $group) { $group->weight(90); $group->item(trans('menu::menu.title'), function (Item $item) { - $item->weight(3); + $item->weight(30); $item->icon('fa fa-bars'); $item->route('admin.menu.menu.index'); $item->authorize( diff --git a/Modules/Page/Events/Handlers/RegisterPageSidebar.php b/Modules/Page/Events/Handlers/RegisterPageSidebar.php index ffffb2096..b62c0cad7 100644 --- a/Modules/Page/Events/Handlers/RegisterPageSidebar.php +++ b/Modules/Page/Events/Handlers/RegisterPageSidebar.php @@ -18,7 +18,7 @@ public function extendWith(Menu $menu) $menu->group(trans('core::sidebar.content'), function (Group $group) { $group->item(trans('page::pages.pages'), function (Item $item) { $item->icon('fa fa-file'); - $item->weight(1); + $item->weight(10); $item->route('admin.page.page.index'); $item->authorize( $this->auth->hasAccess('page.pages.index') diff --git a/Modules/Tag/Events/Handlers/RegisterTagSidebar.php b/Modules/Tag/Events/Handlers/RegisterTagSidebar.php index f10576921..70f86aa52 100644 --- a/Modules/Tag/Events/Handlers/RegisterTagSidebar.php +++ b/Modules/Tag/Events/Handlers/RegisterTagSidebar.php @@ -19,7 +19,7 @@ public function extendWith(Menu $menu) $menu->group(trans('core::sidebar.content'), function (Group $group) { $group->item(trans('tag::tags.tags'), function (Item $item) { $item->icon('fa fa-tag'); - $item->weight(0); + $item->weight(50); $item->route('admin.tag.tag.index'); $item->authorize( $this->auth->hasAccess('tag.tags.index') diff --git a/Modules/Translation/Events/Handlers/RegisterTranslationSidebar.php b/Modules/Translation/Events/Handlers/RegisterTranslationSidebar.php index ec41ca2a3..7636b860b 100644 --- a/Modules/Translation/Events/Handlers/RegisterTranslationSidebar.php +++ b/Modules/Translation/Events/Handlers/RegisterTranslationSidebar.php @@ -22,7 +22,7 @@ public function extendWith(Menu $menu) $menu->group(trans('core::sidebar.content'), function (Group $group) { $group->item(trans('translation::translations.title.translations'), function (Item $item) { $item->icon('fa fa-globe'); - $item->weight(10); + $item->weight(40); $item->route('admin.translation.translation.index'); $item->authorize( $this->auth->hasAccess('translation.translations.index')