Files
tehran_taj/apps/user-app/dist/assets/SectionHead-BqQT521D.js
T
mahmoodandClaude Sonnet 5.5 0b973f9e46 fix(app): re-check the sales-expert flag on every dashboard visit
The "سفارش مشتریان" / "مشتریان من" entries are shown from session.isSalesExpert,
which was fetched from /expert/whoami only once, at sign-in. A slow or failed
request (silently swallowed) left the flag false until the next login, so an
expert saw a customer-only menu. The dashboard now asks again on mount and on
every re-activation, and keeps the current value when the request fails.

Rebuilds user-app and user-app-v2 dist.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 10:23:08 +03:30

2 lines
687 B
JavaScript

import{d,b as t,c as s,e as o,t as a,g as n,S as r,q as _,I as u,_ as m}from"./index-CW3p0GOu.js";const b={class:"sec"},x={class:"sec__text"},f={class:"sec__title"},h={key:0,class:"sec__sub"},k=d({__name:"SectionHead",props:{title:{},subtitle:{},actionLabel:{}},emits:["action"],setup(e,{emit:i}){const l=i;return(S,c)=>(t(),s("header",b,[o("div",x,[o("h2",f,a(e.title),1),e.subtitle?(t(),s("p",h,a(e.subtitle),1)):n("",!0)]),e.actionLabel?(t(),s("button",{key:0,type:"button",class:"sec__action",onClick:c[0]||(c[0]=p=>l("action"))},[r(a(e.actionLabel)+" ",1),_(u,{icon:"vuesax-linear:arrow-left-1",size:"15"})])):n("",!0)]))}}),y=m(k,[["__scopeId","data-v-10172dc1"]]);export{y as S};