mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Prevent downloading cloned invoice PDF before saving
This commit is contained in:
parent
d2c0003ec9
commit
03b696ac9e
@ -529,7 +529,7 @@
|
||||
{!! Former::select('invoice_design_id')->style('display:inline;width:150px;background-color:white !important')->raw()->fromQuery($invoiceDesigns, 'name', 'id')->data_bind("value: invoice_design_id") !!}
|
||||
@endif
|
||||
|
||||
@if ( $invoice->exists && ! $invoice->is_recurring)
|
||||
@if ( $invoice->exists && $invoice->id && ! $invoice->is_recurring)
|
||||
{!! Button::primary(trans('texts.download_pdf'))
|
||||
->withAttributes(['onclick' => 'onDownloadClick()', 'id' => 'downloadPdfButton'])
|
||||
->appendIcon(Icon::create('download-alt')) !!}
|
||||
|
Loading…
x
Reference in New Issue
Block a user