mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix(webapp): use all drawers name from common enum object
This commit is contained in:
@@ -31,6 +31,7 @@ import {
|
||||
import { BillMenuItem } from './utils';
|
||||
|
||||
import { safeCallback, compose } from '@/utils';
|
||||
import { DRAWERS } from '@/constants/drawers';
|
||||
|
||||
function BillDetailActionsBar({
|
||||
// #withDialogActions
|
||||
@@ -49,7 +50,7 @@ function BillDetailActionsBar({
|
||||
// Handle edit bill.
|
||||
const onEditBill = () => {
|
||||
history.push(`/bills/${billId}/edit`);
|
||||
closeDrawer('bill-drawer');
|
||||
closeDrawer(DRAWERS.BILL_DETAILS);
|
||||
};
|
||||
|
||||
// Handle convert to vendor credit.
|
||||
@@ -57,7 +58,7 @@ function BillDetailActionsBar({
|
||||
history.push(`/vendor-credits/new?from_bill_id=${billId}`, {
|
||||
billId: billId,
|
||||
});
|
||||
closeDrawer('bill-drawer');
|
||||
closeDrawer(DRAWERS.BILL_DETAILS);
|
||||
};
|
||||
|
||||
// Handle delete bill.
|
||||
|
||||
Reference in New Issue
Block a user