IO-1497 Ability to delete parts orders.
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
Drawer,
|
||||
Grid,
|
||||
Input,
|
||||
notification,
|
||||
PageHeader,
|
||||
Popconfirm,
|
||||
Space,
|
||||
@@ -119,7 +120,7 @@ export function PartsOrderListTableComponent({
|
||||
</Button>
|
||||
<Popconfirm
|
||||
title={t("parts_orders.labels.confirmdelete")}
|
||||
disabled={jobRO || !record.return}
|
||||
disabled={jobRO}
|
||||
onConfirm={async () => {
|
||||
//Delete the parts return.!
|
||||
|
||||
@@ -139,7 +140,7 @@ export function PartsOrderListTableComponent({
|
||||
});
|
||||
}}
|
||||
>
|
||||
<Button disabled={jobRO || !record.return}>
|
||||
<Button disabled={jobRO}>
|
||||
<DeleteFilled />
|
||||
</Button>
|
||||
</Popconfirm>
|
||||
|
||||
Reference in New Issue
Block a user