admin-panel: drop the four redundant add entries from the sidebar
Each of these now has an add button at the top of its own list page, so the nav entry duplicated it: - 'اضافه کردن شخص' (/customer/add) - 'افزودن شعب' (/branch/add) - 'افزودن کارگاه' (/workshop/add) - 'افزودن مدیر' (/user/create) Only the adminMenu tree is touched; branchMenu keeps its own /customer/add entry, since the branch build has no converted add-modal. All four routes still exist and still work as a direct-link fallback, and the parent submenus keep their remaining children (including 'دسترسی ها' under مدیران). Verified in a real browser: menu items 30 -> 26, none of the four labels render, all four parent submenus still present with their list children, icons unchanged at 16, no console errors. Committed dist/ artifact rebuilt to match (force-added, as it is gitignored but deliberately tracked for Dokploy). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
4b038c0518
commit
d15129168a
@@ -70,13 +70,9 @@ export const adminMenu: NavMenuNode[] = [
|
||||
i18n: 'اشخاص',
|
||||
permissionId:"persons",
|
||||
submenu: [
|
||||
{
|
||||
url: '/customer/add',
|
||||
name: 'AddCustomer',
|
||||
slug: 'add-customer',
|
||||
i18n: 'اضافه کردن شخص',
|
||||
permissionId:"persons.create"
|
||||
},
|
||||
// 'اضافه کردن شخص' removed: adding a wholesale customer is now the
|
||||
// add button on the list page itself (OmdeList), so the nav entry
|
||||
// duplicated it. The /customer/add route still works.
|
||||
{
|
||||
url: '/customer/reagent-list',
|
||||
name: 'List',
|
||||
@@ -138,13 +134,8 @@ export const adminMenu: NavMenuNode[] = [
|
||||
i18n: 'شعب',
|
||||
permissionId:"branch",
|
||||
submenu: [
|
||||
{
|
||||
url: '/branch/add',
|
||||
name: 'AddBranch',
|
||||
slug: 'add-branch',
|
||||
i18n: 'افزودن شعب',
|
||||
permissionId:"branch.create"
|
||||
},
|
||||
// 'افزودن شعب' removed: it is now the add button on the branch list
|
||||
// page. The /branch/add route still works.
|
||||
{
|
||||
url: '/branch/list',
|
||||
name: 'BranchList',
|
||||
@@ -162,13 +153,8 @@ export const adminMenu: NavMenuNode[] = [
|
||||
i18n: 'کارگاه',
|
||||
permissionId:"workshop",
|
||||
submenu: [
|
||||
{
|
||||
url: '/workshop/add',
|
||||
name: 'AddWorkshop',
|
||||
slug: 'add-workshop',
|
||||
i18n: 'افزودن کارگاه',
|
||||
permissionId:"workshop.create"
|
||||
},
|
||||
// 'افزودن کارگاه' removed: it is now the add button on the workshop
|
||||
// list page. The /workshop/add route still works.
|
||||
{
|
||||
url: '/workshop/list',
|
||||
name: 'WorkshopList',
|
||||
@@ -267,13 +253,8 @@ export const adminMenu: NavMenuNode[] = [
|
||||
i18n: 'دسترسی ها',
|
||||
permissionId:"user.permission"
|
||||
},
|
||||
{
|
||||
url: '/user/create',
|
||||
name: 'AddUser',
|
||||
slug: 'add-user',
|
||||
i18n: 'افزودن مدیر',
|
||||
permissionId:"user.create"
|
||||
},
|
||||
// 'افزودن مدیر' removed: it is now the add button on the admin list
|
||||
// page (ListUser). The /user/create route still works.
|
||||
{
|
||||
url: '/user/list',
|
||||
name: 'UserList',
|
||||
|
||||
Reference in New Issue
Block a user