mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
BIG-277 Separate customer and vendor.
This commit is contained in:
@@ -3,15 +3,15 @@ import React from 'react';
|
||||
const VendorDeleteAlert = React.lazy(() =>
|
||||
import('../Alerts/Vendors/VendorDeleteAlert'),
|
||||
);
|
||||
const ContactActivateAlert = React.lazy(() =>
|
||||
import('../Alerts/Contacts/ContactActivateAlert'),
|
||||
const VendorActivateAlert = React.lazy(() =>
|
||||
import('../Alerts/Vendors/VendorActivateAlert'),
|
||||
);
|
||||
const ContactInactivateAlert = React.lazy(() =>
|
||||
import('../Alerts/Contacts/ContactInactivateAlert'),
|
||||
const VendorInactivateAlert = React.lazy(() =>
|
||||
import('../Alerts/Vendors/VendorInactivateAlert'),
|
||||
);
|
||||
|
||||
export default [
|
||||
{ name: 'vendor-delete', component: VendorDeleteAlert },
|
||||
{ name: 'contact-activate', component: ContactActivateAlert },
|
||||
{ name: 'contact-inactivate', component: ContactInactivateAlert },
|
||||
{ name: 'vendor-activate', component: VendorActivateAlert },
|
||||
{ name: 'vendor-inactivate', component: VendorInactivateAlert },
|
||||
];
|
||||
|
||||
@@ -67,15 +67,15 @@ function VendorsTable({
|
||||
|
||||
// Handle cancel/confirm inactive.
|
||||
const handleInactiveVendor = ({ id, contact_service }) => {
|
||||
openAlert('contact-inactivate', {
|
||||
contactId: id,
|
||||
openAlert('vendor-inactivate', {
|
||||
vendorId: id,
|
||||
service: contact_service,
|
||||
});
|
||||
};
|
||||
|
||||
// Handle cancel/confirm activate.
|
||||
// Handle cancel/confirm activate.
|
||||
const handleActivateVendor = ({ id, contact_service }) => {
|
||||
openAlert('contact-activate', { contactId: id, service: contact_service });
|
||||
openAlert('vendor-activate', { vendorId: id, service: contact_service });
|
||||
};
|
||||
|
||||
// Handle click delete vendor.
|
||||
|
||||
Reference in New Issue
Block a user