mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2025-09-16 20:49:36 +08:00
Added breakage handling for technician transaction view
This commit is contained in:
parent
8ef4efb1d9
commit
fee55c95c8
3 changed files with 26 additions and 2 deletions
|
@ -61,6 +61,9 @@ export default function EditItemInstanceModal(props: {
|
|||
queryClient.invalidateQueries({
|
||||
queryKey: ["equipment_instance", props.id],
|
||||
});
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: ["transactions"],
|
||||
});
|
||||
setError("Updated successfully");
|
||||
toast(
|
||||
`Item updated successfuly, ${
|
||||
|
@ -84,6 +87,7 @@ export default function EditItemInstanceModal(props: {
|
|||
status: data[1].status,
|
||||
});
|
||||
}
|
||||
props.setOpen(false);
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
@ -123,6 +123,7 @@ export type TransactionType = {
|
|||
equipments: Array<{
|
||||
id: number;
|
||||
name: string;
|
||||
status: string;
|
||||
}>;
|
||||
transaction_status: string;
|
||||
timestamp: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue