mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
BIG-33: fix close drawer when delete bill.
This commit is contained in:
@@ -36,16 +36,13 @@ function BillDetailActionsBar({
|
||||
|
||||
// Handle edit bill.
|
||||
const onEditBill = () => {
|
||||
return billId
|
||||
? (history.push(`/bills/${billId}/edit`), closeDrawer('bill-drawer'))
|
||||
: null;
|
||||
history.push(`/bills/${billId}/edit`);
|
||||
closeDrawer('bill-drawer');
|
||||
};
|
||||
|
||||
// Handle delete bill.
|
||||
const onDeleteBill = () => {
|
||||
return billId
|
||||
? (openAlert('bill-delete', { billId }), closeDrawer('bill-drawer'))
|
||||
: null;
|
||||
openAlert('bill-delete', { billId });
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user