mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
wip
This commit is contained in:
@@ -46,8 +46,8 @@ function AccountBulkDeleteDialog({
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
queryCache.invalidateQueries('accounts-table');
|
||||
closeDialog(dialogName);
|
||||
setAccountsSelectedRows([]);
|
||||
closeDialog(dialogName);
|
||||
})
|
||||
.catch((errors) => {
|
||||
handleDeleteErrors(errors);
|
||||
|
||||
@@ -45,8 +45,8 @@ function BillBulkDeleteDialog({
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
queryCache.invalidateQueries('bills-table');
|
||||
closeDialog(dialogName);
|
||||
setBillsSelectedRows([]);
|
||||
closeDialog(dialogName);
|
||||
})
|
||||
.catch(() => {
|
||||
AppToaster.show({
|
||||
|
||||
@@ -46,8 +46,8 @@ function CreditNoteBulkDeleteDialog({
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
queryCache.invalidateQueries('credit-notes-table');
|
||||
closeDialog(dialogName);
|
||||
setCreditNotesSelectedRows([]);
|
||||
closeDialog(dialogName);
|
||||
})
|
||||
.catch(() => {
|
||||
AppToaster.show({
|
||||
|
||||
@@ -46,8 +46,8 @@ function EstimateBulkDeleteDialog({
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
queryCache.invalidateQueries('estimates-table');
|
||||
closeDialog(dialogName);
|
||||
setEstimatesSelectedRows([]);
|
||||
closeDialog(dialogName);
|
||||
})
|
||||
.catch(() => {
|
||||
AppToaster.show({
|
||||
|
||||
@@ -46,8 +46,8 @@ function ExpenseBulkDeleteDialog({
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
queryCache.invalidateQueries('expenses-table');
|
||||
closeDialog(dialogName);
|
||||
setExpensesSelectedRows([]);
|
||||
closeDialog(dialogName);
|
||||
})
|
||||
.catch(() => {
|
||||
AppToaster.show({
|
||||
|
||||
@@ -51,8 +51,8 @@ function InvoiceBulkDeleteDialog({
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
queryCache.invalidateQueries('invoices-table');
|
||||
closeDialog(dialogName);
|
||||
resetInvoicesSelectedRows();
|
||||
closeDialog(dialogName);
|
||||
})
|
||||
.catch((errors) => {
|
||||
AppToaster.show({
|
||||
|
||||
@@ -46,8 +46,8 @@ function ManualJournalBulkDeleteDialog({
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
queryCache.invalidateQueries('manual-journals-table');
|
||||
closeDialog(dialogName);
|
||||
setManualJournalsSelectedRows([]);
|
||||
closeDialog(dialogName);
|
||||
})
|
||||
.catch(() => {
|
||||
AppToaster.show({
|
||||
|
||||
@@ -48,8 +48,8 @@ function PaymentReceivedBulkDeleteDialog({
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
queryCache.invalidateQueries('payments-received-table');
|
||||
closeDialog(dialogName);
|
||||
setPaymentReceivesSelectedRows([]);
|
||||
closeDialog(dialogName);
|
||||
})
|
||||
.catch(() => {
|
||||
AppToaster.show({
|
||||
|
||||
@@ -46,8 +46,8 @@ function ReceiptBulkDeleteDialog({
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
queryCache.invalidateQueries('sale-receipts-table');
|
||||
closeDialog(dialogName);
|
||||
setReceiptsSelectedRows([]);
|
||||
closeDialog(dialogName);
|
||||
})
|
||||
.catch(() => {
|
||||
AppToaster.show({
|
||||
|
||||
@@ -48,8 +48,8 @@ function VendorCreditBulkDeleteDialog({
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
queryCache.invalidateQueries('vendor-credits-table');
|
||||
closeDialog(dialogName);
|
||||
setVendorsCreditNoteSelectedRows([]);
|
||||
closeDialog(dialogName);
|
||||
})
|
||||
.catch(() => {
|
||||
AppToaster.show({
|
||||
|
||||
Reference in New Issue
Block a user