update mobile view for expense.
This commit is contained in:
+4
-1
@@ -66,7 +66,10 @@ export class MyReimbursementsPageComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
canEdit(row: ExpenseListItemDto): boolean { return row.status === 'Draft'; }
|
||||
/** Editing (and reuploading the photo) is allowed while a reimbursement is still Draft or awaiting review. */
|
||||
canEdit(row: ExpenseListItemDto): boolean { return row.status === 'Draft' || row.status === 'PendingApproval'; }
|
||||
/** Submit and Delete only apply before the reimbursement has been submitted. */
|
||||
isDraft(row: ExpenseListItemDto): boolean { return row.status === 'Draft'; }
|
||||
statusClass(status: string): string {
|
||||
return ({ Draft: 'badge-draft', PendingApproval: 'badge-pending', Approved: 'badge-approved', Paid: 'badge-paid', Rejected: 'badge-rejected' } as Record<string, string>)[status] ?? '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user