Fix for auth check when approving quote
This commit is contained in:
parent
8121f398ed
commit
35694c5808
1 changed files with 9 additions and 0 deletions
|
|
@ -290,6 +290,15 @@
|
|||
}
|
||||
|
||||
function onApproveClick() {
|
||||
@if ($account->requiresAuthorization($invoice))
|
||||
window.pendingPaymentFunction = approveQuote;
|
||||
showAuthorizationModal();
|
||||
@else
|
||||
approveQuote();
|
||||
@endif
|
||||
}
|
||||
|
||||
function approveQuote() {
|
||||
$('#approveButton').prop('disabled', true);
|
||||
location.href = "{{ url('/approve/' . $invitation->invitation_key) }}";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue