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
1.2 KiB
JavaScript
2 lines
1.2 KiB
JavaScript
import{_ as c}from"./FacilityList.vue_vue_type_script_setup_true_lang-DDOeuRqL.js";import{_ as m}from"./AddBranches.vue_vue_type_script_setup_true_lang-jeQKZEZ8.js";import{a as p,b as t}from"./model-Ccgnj9lY.js";import{d as l,f as a,g as f,n as _,o}from"./index-Cv1Zmfn4.js";import"./ListPageHeader-DnQDX3sP.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./BaseFormModal.vue_vue_type_script_setup_true_lang-Ctp6vfI0.js";function u(){const e=new p("admin/branches/list","لیست شعب");return e.add(new t("name","نام").filterText()),e.add(new t("address","آدرس").filterText()),e.add(new t("phone","شماره تلفن").filterNumber()),e.add(new t("user.name","مدیر شعبه").filterNumber().noSort()),e.add(new t("op","عملیات").noSort().renderSlot("actions")),e}const C=l({__name:"ListBranches",setup(e){const r=u();return(b,h)=>(o(),a(c,{title:"لیست شعب",model:_(r),"edit-path":"/branch/edit","active-path":"branch/active","add-rid":"branch.create","add-label":"افزودن شعبه"},{form:f(({open:d,editingId:n,onUpdateOpen:i,onSuccess:s})=>[(o(),a(m,{key:n??"new",open:d,id:n,"onUpdate:open":i,onSuccess:s},null,8,["open","id","onUpdate:open","onSuccess"]))]),_:1},8,["model"]))}});export{C as default};
|