fix: result_appeal also uses appeal display logic in ticket detail

This commit is contained in:
2026-07-12 17:35:23 +08:00
parent 93382773e6
commit 0fd004dd84

View File

@@ -14,7 +14,7 @@ const TicketDetail = {
const isStaff = Auth.isAdmin(); const isStaff = Auth.isAdmin();
const isOwner = Auth.isOwner(); const isOwner = Auth.isOwner();
const isRep = t.type === 'report'; const isRep = t.type === 'report';
const isAppeal = t.type === 'appeal'; const isAppeal = t.type === 'appeal' || t.type === 'result_appeal';
const canClaim = isStaff && !t.assigned_to && t.status === 'pending'; const canClaim = isStaff && !t.assigned_to && t.status === 'pending';
const canTransfer = isStaff && t.assigned_to === Auth.user().id && t.status === 'processing'; const canTransfer = isStaff && t.assigned_to === Auth.user().id && t.status === 'processing';
const isMyTicket = t.assigned_to === Auth.user().id; const isMyTicket = t.assigned_to === Auth.user().id;