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>
2 lines
660 B
JavaScript
2 lines
660 B
JavaScript
import{d as i,b as c,o as s,i as l,f as m,g as o,l as u,t as p,c as f,n as _,P as b,j as P,e as g}from"./index-Cv1Zmfn4.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";const v={class:"list-page-header"},C=i({__name:"ListPageHeader",props:{rid:{default:void 0},addLabel:{default:"افزودن"}},emits:["add"],setup(e){const n=c(),r=t=>!!n.hasPermission(t);return(t,a)=>{const d=g("a-button");return s(),l("div",v,[!e.rid||r(e.rid)?(s(),m(d,{key:0,type:"primary",onClick:a[0]||(a[0]=L=>t.$emit("add"))},{icon:o(()=>[f(_(b))]),default:o(()=>[u(" "+p(e.addLabel),1)]),_:1})):P("",!0)])}}}),y=k(C,[["__scopeId","data-v-af0e7bb2"]]);export{y as L};
|