mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
BIG-17: fix delete button in customer & vendor.
This commit is contained in:
@@ -60,7 +60,7 @@ function CustomerDetailsActionsBar({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleDeleteCustomer = () => {
|
const handleDeleteCustomer = () => {
|
||||||
openAlert(`'customer-delete`, { customerId });
|
openAlert(`customer-delete`, { contactId: customerId });
|
||||||
closeDrawer('customer-details-drawer');
|
closeDrawer('customer-details-drawer');
|
||||||
};
|
};
|
||||||
const handleEditContact = () => {
|
const handleEditContact = () => {
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ function VendorDetailsActionsBar({
|
|||||||
|
|
||||||
// Handle delete vendor.
|
// Handle delete vendor.
|
||||||
const onDeleteContact = () => {
|
const onDeleteContact = () => {
|
||||||
openAlert(`'vendor-delete`, { vendorId });
|
openAlert(`vendor-delete`, { contactId: vendorId });
|
||||||
closeDrawer('vendor-details-drawer');
|
closeDrawer('vendor-details-drawer');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user