fix: result_appeal also uses appeal display logic in ticket detail
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user