From 5e4e9c37c3eb223cc30150f426bb02ffbc8e7a95 Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Sun, 17 Apr 2022 05:19:23 +0200 Subject: [PATCH] feat(Sidebar): add the missing sidebar items. --- src/config/sidebarMenu.js | 46 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/src/config/sidebarMenu.js b/src/config/sidebarMenu.js index ca9dcd895..e3b11386b 100644 --- a/src/config/sidebarMenu.js +++ b/src/config/sidebarMenu.js @@ -70,6 +70,11 @@ export const SidebarMenu = [ ability: InventoryAdjustmentAction.View, }, }, + { + text: , + href: '/warehouses-transfers', + type: ISidebarMenuItemType.Link, + }, { text: , href: '/items/categories', @@ -81,6 +86,47 @@ export const SidebarMenu = [ }, ], }, + { + text: , + type: ISidebarMenuItemType.Group, + children: [ + { + text: , + href: '/items/new', + type: ISidebarMenuItemType.Link, + permission: { + subject: AbilitySubject.Item, + ability: ItemAction.Create, + }, + }, + { + text: ( + + ), + href: '/warehouses-transfers/new', + type: ISidebarMenuItemType.Link, + }, + { + text: , + href: '/items/new', + type: ISidebarMenuItemType.Link, + permission: { + subject: AbilitySubject.Item, + ability: ItemAction.Create, + }, + }, + { + text: , + href: '/items/categories/new', + type: ISidebarMenuItemType.Dialog, + dialogName: 'item-category-form', + permission: { + subject: AbilitySubject.Item, + ability: ItemAction.Create, + }, + }, + ], + }, ], }, ],