fix(ui): hide invoice list delete button for paid invoices (consistent with detail guard)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -638,7 +638,7 @@ export default function Invoices() {
|
|||||||
{pdfLoading === inv.id ? <CircularProgress size={16} /> : PdfIcon}
|
{pdfLoading === inv.id ? <CircularProgress size={16} /> : PdfIcon}
|
||||||
</IconButton>
|
</IconButton>
|
||||||
)}
|
)}
|
||||||
{hasPermission("invoices.delete") && (
|
{hasPermission("invoices.delete") && inv.status !== "paid" && (
|
||||||
<IconButton
|
<IconButton
|
||||||
size="small"
|
size="small"
|
||||||
color="error"
|
color="error"
|
||||||
|
|||||||
Reference in New Issue
Block a user