mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Hide PDF is live preview is disabled
This commit is contained in:
parent
752e674a34
commit
85786afce8
@ -563,7 +563,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
|
|
||||||
@include('invoices.pdf', ['account' => Auth::user()->account])
|
@if (Auth::user()->account->live_preview))
|
||||||
|
@include('invoices.pdf', ['account' => Auth::user()->account])
|
||||||
|
@else
|
||||||
|
<script type="text/javascript">
|
||||||
|
var invoiceLabels = {!! json_encode($account->getInvoiceLabels()) !!};
|
||||||
|
function refreshPDF() {}
|
||||||
|
</script>
|
||||||
|
@endif
|
||||||
|
|
||||||
@if (!Auth::user()->account->isPro())
|
@if (!Auth::user()->account->isPro())
|
||||||
<div style="font-size:larger">
|
<div style="font-size:larger">
|
||||||
@ -1167,11 +1174,6 @@
|
|||||||
|
|
||||||
window.generatedPDF = false;
|
window.generatedPDF = false;
|
||||||
function getPDFString(cb, force) {
|
function getPDFString(cb, force) {
|
||||||
@if (!$account->live_preview)
|
|
||||||
if (window.generatedPDF) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
@endif
|
|
||||||
var invoice = createInvoiceModel();
|
var invoice = createInvoiceModel();
|
||||||
var design = getDesignJavascript();
|
var design = getDesignJavascript();
|
||||||
if (!design) return;
|
if (!design) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user