mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
fix: close btn in invoice delete.
This commit is contained in:
@@ -97,9 +97,10 @@ function InvoiceList({
|
|||||||
const handleConfirmInvoiceDelete = useCallback(() => {
|
const handleConfirmInvoiceDelete = useCallback(() => {
|
||||||
requestDeleteInvoice(deleteInvoice.id)
|
requestDeleteInvoice(deleteInvoice.id)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
setDeleteInvoice(false);
|
||||||
AppToaster.show({
|
AppToaster.show({
|
||||||
message: formatMessage({
|
message: formatMessage({
|
||||||
id: 'the_invocie_has_been_successfully_deleted',
|
id: 'the_invoice_has_been_successfully_deleted',
|
||||||
}),
|
}),
|
||||||
intent: Intent.SUCCESS,
|
intent: Intent.SUCCESS,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -635,7 +635,7 @@ export default {
|
|||||||
'The invoice #{number} has been successfully edited.',
|
'The invoice #{number} has been successfully edited.',
|
||||||
the_invocie_has_been_successfully_created:
|
the_invocie_has_been_successfully_created:
|
||||||
'The invoice #{number} has been successfully created.',
|
'The invoice #{number} has been successfully created.',
|
||||||
the_invocie_has_been_successfully_deleted:
|
the_invoice_has_been_successfully_deleted:
|
||||||
'The invoice has been successfully deleted.',
|
'The invoice has been successfully deleted.',
|
||||||
once_delete_this_invoice_you_will_able_to_restore_it: `Once you delete this invoice, you won\'t be able to restore it later. Are you sure you want to delete this invoice?`,
|
once_delete_this_invoice_you_will_able_to_restore_it: `Once you delete this invoice, you won\'t be able to restore it later. Are you sure you want to delete this invoice?`,
|
||||||
receipt_list: 'Receipt List',
|
receipt_list: 'Receipt List',
|
||||||
|
|||||||
Reference in New Issue
Block a user