mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45:47 +00:00
feat: update menu permissions
This commit is contained in:
@@ -5,6 +5,7 @@ export const MAIN_DRAWER_LINKS: SidebarMenuItem[] = [
|
|||||||
text: 'Dashboard',
|
text: 'Dashboard',
|
||||||
link: '/dashboard',
|
link: '/dashboard',
|
||||||
icon: 'heroicons-outline:chart-bar-square',
|
icon: 'heroicons-outline:chart-bar-square',
|
||||||
|
permission: ['lti.dashboard.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Daily Checklist',
|
text: 'Daily Checklist',
|
||||||
@@ -138,26 +139,46 @@ export const MAIN_DRAWER_LINKS: SidebarMenuItem[] = [
|
|||||||
text: 'Laporan',
|
text: 'Laporan',
|
||||||
link: '/report',
|
link: '/report',
|
||||||
icon: 'mdi:chart-box-outline',
|
icon: 'mdi:chart-box-outline',
|
||||||
|
permission: [
|
||||||
|
'lti.repport.debtsupplier.list',
|
||||||
|
'lti.repport.customerpayment.list',
|
||||||
|
'lti.repport.purchasesupplier.list',
|
||||||
|
'lti.repport.expense.list',
|
||||||
|
'lti.repport.delivery.list',
|
||||||
|
'lti.repport.gethppperkandang.list',
|
||||||
|
'lti.repport.production_result.list',
|
||||||
|
],
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
text: 'Keuangan',
|
text: 'Keuangan',
|
||||||
link: '/report/finance',
|
link: '/report/finance',
|
||||||
|
permission: [
|
||||||
|
'lti.repport.debtsupplier.list',
|
||||||
|
'lti.repport.customerpayment.list',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Logistik & Persediaan',
|
text: 'Logistik & Persediaan',
|
||||||
link: '/report/logistic-stock',
|
link: '/report/logistic-stock',
|
||||||
|
permission: ['lti.repport.purchasesupplier.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Biaya Operasional',
|
text: 'Biaya Operasional',
|
||||||
link: '/report/expense',
|
link: '/report/expense',
|
||||||
|
permission: ['lti.repport.expense.list'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Penjualan',
|
text: 'Penjualan',
|
||||||
link: '/report/marketing',
|
link: '/report/marketing',
|
||||||
|
permission: [
|
||||||
|
'lti.repport.delivery.list',
|
||||||
|
'lti.repport.gethppperkandang.list',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Hasil Produksi',
|
text: 'Hasil Produksi',
|
||||||
link: '/report/production-result',
|
link: '/report/production-result',
|
||||||
|
permission: ['lti.repport.production_result.list'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -206,6 +227,7 @@ export const MAIN_DRAWER_LINKS: SidebarMenuItem[] = [
|
|||||||
'lti.master.suppliers.list',
|
'lti.master.suppliers.list',
|
||||||
'lti.master.uoms.list',
|
'lti.master.uoms.list',
|
||||||
'lti.master.warehouses.list',
|
'lti.master.warehouses.list',
|
||||||
|
'lti.master.production_standards.list',
|
||||||
],
|
],
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
@@ -276,6 +298,7 @@ export const MAIN_DRAWER_LINKS: SidebarMenuItem[] = [
|
|||||||
{
|
{
|
||||||
text: 'Standar Produksi',
|
text: 'Standar Produksi',
|
||||||
link: '/master-data/production-standard',
|
link: '/master-data/production-standard',
|
||||||
|
permission: ['lti.master.production_standards.list'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user