mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 11:04:41 -04:00
Improved 'return to app' button logic
This commit is contained in:
parent
1dc692d578
commit
0f95799f33
@ -25,10 +25,7 @@
|
||||
@include('partials.checkout_com_payment')
|
||||
@else
|
||||
<div class="pull-right" style="text-align:right">
|
||||
@if (Session::get('trackEventAction') === '/buy_pro_plan')
|
||||
{!! Button::normal(trans('texts.download_pdf'))->withAttributes(['onclick' => 'onDownloadClick()'])->large() !!}
|
||||
{!! Button::primary(trans('texts.return_to_app'))->asLinkTo(URL::to('/dashboard'))->large() !!}
|
||||
@elseif ($invoice->is_quote)
|
||||
@if ($invoice->is_quote)
|
||||
{!! Button::normal(trans('texts.download_pdf'))->withAttributes(['onclick' => 'onDownloadClick()'])->large() !!}
|
||||
@if ($showApprove)
|
||||
{!! Button::success(trans('texts.approve'))->asLinkTo(URL::to('/approve/' . $invitation->invitation_key))->large() !!}
|
||||
@ -42,6 +39,9 @@
|
||||
@endif
|
||||
@else
|
||||
{!! Button::normal(trans('texts.download_pdf'))->withAttributes(['onclick' => 'onDownloadClick()'])->large() !!}
|
||||
@if ($account->isNinjaAccount())
|
||||
{!! Button::primary(trans('texts.return_to_app'))->asLinkTo(URL::to('/dashboard'))->large() !!}
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
<div class="pull-left">
|
||||
|
Loading…
x
Reference in New Issue
Block a user