mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Check registered in upgrade modal
This commit is contained in:
parent
0aa0fb859e
commit
6ed2d5b8c4
@ -2599,6 +2599,7 @@ $LANG = array(
|
|||||||
'is_not_sent_reminders' => 'Reminders are not sent',
|
'is_not_sent_reminders' => 'Reminders are not sent',
|
||||||
'promotion_footer' => 'Your promotion will expire soon, :link to upgrade now.',
|
'promotion_footer' => 'Your promotion will expire soon, :link to upgrade now.',
|
||||||
'unable_to_delete_primary' => 'Note: to delete this company first delete all linked companies.',
|
'unable_to_delete_primary' => 'Note: to delete this company first delete all linked companies.',
|
||||||
|
'please_register' => 'Please register your account',
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -65,7 +65,10 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
function showUpgradeModal() {
|
function showUpgradeModal() {
|
||||||
@if ( ! Auth::check() || ! Auth::user()->confirmed)
|
@if ( ! Auth::check() || ! Auth::user()->registered)
|
||||||
|
swal("{!! trans('texts.please_register') !!}");
|
||||||
|
return;
|
||||||
|
@elseif ( ! Auth::check() || ! Auth::user()->confirmed)
|
||||||
swal("{!! trans('texts.confirmation_required') !!}");
|
swal("{!! trans('texts.confirmation_required') !!}");
|
||||||
return;
|
return;
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user