feat(Sidebar): add the missing sidebar items.

This commit is contained in:
a.bouhuolia
2022-04-17 05:19:23 +02:00
parent 944bc29f4d
commit 5e4e9c37c3

View File

@@ -70,6 +70,11 @@ export const SidebarMenu = [
ability: InventoryAdjustmentAction.View,
},
},
{
text: <T id={'sidebar_warehouse_transfer'} />,
href: '/warehouses-transfers',
type: ISidebarMenuItemType.Link,
},
{
text: <T id={'category_list'} />,
href: '/items/categories',
@@ -81,6 +86,47 @@ export const SidebarMenu = [
},
],
},
{
text: <T id={'New tasks'} />,
type: ISidebarMenuItemType.Group,
children: [
{
text: <T id={'New inventory item'} />,
href: '/items/new',
type: ISidebarMenuItemType.Link,
permission: {
subject: AbilitySubject.Item,
ability: ItemAction.Create,
},
},
{
text: (
<T id={'warehouse_transfer.label.new_warehouse_transfer'} />
),
href: '/warehouses-transfers/new',
type: ISidebarMenuItemType.Link,
},
{
text: <T id={'New service'} />,
href: '/items/new',
type: ISidebarMenuItemType.Link,
permission: {
subject: AbilitySubject.Item,
ability: ItemAction.Create,
},
},
{
text: <T id={'New item category'} />,
href: '/items/categories/new',
type: ISidebarMenuItemType.Dialog,
dialogName: 'item-category-form',
permission: {
subject: AbilitySubject.Item,
ability: ItemAction.Create,
},
},
],
},
],
},
],