Add confirmation dialog before sending invoice email
The commit adds a confirmation dialog when sending invoices, improves error handling with retries, and refines email-related UI text.
This commit is contained in:
@@ -49,8 +49,8 @@ export function EnhancedSendInvoiceButton({
|
||||
!hasClientEmail
|
||||
? "Client has no email address"
|
||||
: showResend
|
||||
? "Resend Invoice"
|
||||
: "Send Invoice"
|
||||
? "Resend Email"
|
||||
: "Compose Email"
|
||||
}
|
||||
>
|
||||
{invoiceLoading ? (
|
||||
@@ -90,7 +90,7 @@ export function EnhancedSendInvoiceButton({
|
||||
) : (
|
||||
<Send className="mr-2 h-4 w-4" />
|
||||
)}
|
||||
<span>{showResend ? "Resend Invoice" : "Send Invoice"}</span>
|
||||
<span>{showResend ? "Resend Email" : "Compose Email"}</span>
|
||||
</>
|
||||
)}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user