mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
feat(FE-331): add permissions to MAIN_DRAWER_LINKS
This commit is contained in:
@@ -10,14 +10,20 @@ export const MAIN_DRAWER_LINKS: SidebarMenuItem[] = [
|
|||||||
text: 'Produksi',
|
text: 'Produksi',
|
||||||
link: '/production',
|
link: '/production',
|
||||||
icon: 'heroicons-outline:wrench-screwdriver',
|
icon: 'heroicons-outline:wrench-screwdriver',
|
||||||
|
permission: [
|
||||||
|
'lti.production.project_flocks.list',
|
||||||
|
'lti.production.recording.list',
|
||||||
|
],
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
text: 'Daftar Flock',
|
text: 'Daftar Flock',
|
||||||
link: '/production/project-flock',
|
link: '/production/project-flock',
|
||||||
|
permission: ['lti.production.project_flocks.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Recording',
|
text: 'Recording',
|
||||||
link: '/production/recording',
|
link: '/production/recording',
|
||||||
|
permission: ['lti.production.recording.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Transfer to Laying',
|
text: 'Transfer to Laying',
|
||||||
@@ -29,6 +35,7 @@ export const MAIN_DRAWER_LINKS: SidebarMenuItem[] = [
|
|||||||
text: 'Pembelian',
|
text: 'Pembelian',
|
||||||
link: '/purchase',
|
link: '/purchase',
|
||||||
icon: 'heroicons-outline:shopping-cart',
|
icon: 'heroicons-outline:shopping-cart',
|
||||||
|
permission: ['lti.purchase.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Penjualan',
|
text: 'Penjualan',
|
||||||
@@ -39,28 +46,38 @@ export const MAIN_DRAWER_LINKS: SidebarMenuItem[] = [
|
|||||||
text: 'Biaya Operasional',
|
text: 'Biaya Operasional',
|
||||||
link: '/expense',
|
link: '/expense',
|
||||||
icon: 'heroicons:wallet',
|
icon: 'heroicons:wallet',
|
||||||
|
permission: ['lti.expense.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Closing',
|
text: 'Closing',
|
||||||
link: '/closing',
|
link: '/closing',
|
||||||
icon: 'heroicons-outline:presentation-chart-bar',
|
icon: 'heroicons-outline:presentation-chart-bar',
|
||||||
|
permission: ['lti.closing.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Persediaan',
|
text: 'Persediaan',
|
||||||
link: '/inventory',
|
link: '/inventory',
|
||||||
icon: 'heroicons-outline:folder',
|
icon: 'heroicons-outline:folder',
|
||||||
|
permission: [
|
||||||
|
'lti.inventory.product_stock.list',
|
||||||
|
'lti.inventory.product_warehouses.list',
|
||||||
|
'lti.inventory.transfer.list',
|
||||||
|
],
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
text: 'Produk',
|
text: 'Produk',
|
||||||
link: '/inventory/product',
|
link: '/inventory/product',
|
||||||
|
permission: ['lti.inventory.product_stock.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Penyesuaian Stok',
|
text: 'Penyesuaian Stok',
|
||||||
link: '/inventory/adjustment',
|
link: '/inventory/adjustment',
|
||||||
|
permission: ['lti.inventory.product_stock.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Transfer Stok',
|
text: 'Transfer Stok',
|
||||||
link: '/inventory/movement',
|
link: '/inventory/movement',
|
||||||
|
permission: ['lti.inventory.transfer.list'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -68,58 +85,86 @@ export const MAIN_DRAWER_LINKS: SidebarMenuItem[] = [
|
|||||||
text: 'Master Data',
|
text: 'Master Data',
|
||||||
link: '/master-data',
|
link: '/master-data',
|
||||||
icon: 'heroicons-outline:circle-stack',
|
icon: 'heroicons-outline:circle-stack',
|
||||||
|
permission: [
|
||||||
|
'lti.master.area.list',
|
||||||
|
'lti.master.banks.list',
|
||||||
|
'lti.master.customer.list',
|
||||||
|
'lti.master.fcr.list',
|
||||||
|
'lti.master.flocks.list',
|
||||||
|
'lti.master.kandangs.list',
|
||||||
|
'lti.master.locations.list',
|
||||||
|
'lti.master.nonstocks.list',
|
||||||
|
'lti.master.product_categories.list',
|
||||||
|
'lti.master.products.list',
|
||||||
|
'lti.master.suppliers.list',
|
||||||
|
'lti.master.uoms.list',
|
||||||
|
'lti.master.warehouses.list',
|
||||||
|
],
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
text: 'Produk',
|
text: 'Produk',
|
||||||
link: '/master-data/product',
|
link: '/master-data/product',
|
||||||
|
permission: ['lti.master.products.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Kategori Produk',
|
text: 'Kategori Produk',
|
||||||
link: '/master-data/product-category',
|
link: '/master-data/product-category',
|
||||||
|
permission: ['lti.master.product_categories.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Bank',
|
text: 'Bank',
|
||||||
link: '/master-data/bank',
|
link: '/master-data/bank',
|
||||||
|
permission: ['lti.master.banks.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Area',
|
text: 'Area',
|
||||||
link: '/master-data/area',
|
link: '/master-data/area',
|
||||||
|
permission: ['lti.master.area.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Lokasi',
|
text: 'Lokasi',
|
||||||
link: '/master-data/location',
|
link: '/master-data/location',
|
||||||
|
permission: ['lti.master.locations.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Kandang',
|
text: 'Kandang',
|
||||||
link: '/master-data/kandang',
|
link: '/master-data/kandang',
|
||||||
|
permission: ['lti.master.kandangs.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Warehouse',
|
text: 'Warehouse',
|
||||||
link: '/master-data/warehouse',
|
link: '/master-data/warehouse',
|
||||||
|
permission: ['lti.master.warehouses.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Customer',
|
text: 'Customer',
|
||||||
link: '/master-data/customer',
|
link: '/master-data/customer',
|
||||||
|
permission: ['lti.master.customer.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'UOM',
|
text: 'UOM',
|
||||||
link: '/master-data/uom',
|
link: '/master-data/uom',
|
||||||
|
permission: ['lti.master.uoms.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Non-Stock',
|
text: 'Non-Stock',
|
||||||
link: '/master-data/nonstock',
|
link: '/master-data/nonstock',
|
||||||
|
permission: ['lti.master.nonstocks.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'FCR',
|
text: 'FCR',
|
||||||
link: '/master-data/fcr',
|
link: '/master-data/fcr',
|
||||||
|
permission: ['lti.master.fcr.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Supplier',
|
text: 'Supplier',
|
||||||
link: '/master-data/supplier',
|
link: '/master-data/supplier',
|
||||||
|
permission: ['lti.master.suppliers.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Flock',
|
text: 'Flock',
|
||||||
link: '/master-data/flock',
|
link: '/master-data/flock',
|
||||||
|
permission: ['lti.master.flocks.list'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user