mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
feat: sharable payment link dialog
This commit is contained in:
@@ -103,6 +103,13 @@ function InvoiceDetailActionsBar({
|
||||
openDialog(DialogsName.InvoiceMail, { invoiceId });
|
||||
};
|
||||
|
||||
const handleShareButtonClick = () => {
|
||||
openDialog(DialogsName.SharePaymentLink, {
|
||||
transactionId: invoiceId,
|
||||
transactionType: 'SaleInvoice',
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<DrawerActionsBar>
|
||||
<NavbarGroup>
|
||||
@@ -150,6 +157,11 @@ function InvoiceDetailActionsBar({
|
||||
onClick={handleDeleteInvoice}
|
||||
/>
|
||||
</Can>
|
||||
<Button
|
||||
className={Classes.MINIMAL}
|
||||
text={'Share'}
|
||||
onClick={handleShareButtonClick}
|
||||
/>
|
||||
<Can I={SaleInvoiceAction.Writeoff} a={AbilitySubject.Invoice}>
|
||||
<NavbarDivider />
|
||||
<BadDebtMenuItem
|
||||
|
||||
Reference in New Issue
Block a user