From b6e676b513f147ba793fc5cab0d9fbcd6a3328b5 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 26 Mar 2018 22:31:45 +0300 Subject: [PATCH] Changed label to 'View in Portal' --- app/Ninja/Presenters/ProposalPresenter.php | 2 +- resources/lang/en/texts.php | 1 + resources/views/clients/show.blade.php | 2 +- resources/views/invoices/knockout.blade.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Ninja/Presenters/ProposalPresenter.php b/app/Ninja/Presenters/ProposalPresenter.php index eca4e906df..ed05d01b89 100644 --- a/app/Ninja/Presenters/ProposalPresenter.php +++ b/app/Ninja/Presenters/ProposalPresenter.php @@ -16,7 +16,7 @@ class ProposalPresenter extends EntityPresenter $invitation = $proposal->invitations->first(); $actions = []; - $actions[] = ['url' => $invitation->getLink('proposal'), 'label' => trans("texts.view_as_recipient")]; + $actions[] = ['url' => $invitation->getLink('proposal'), 'label' => trans("texts.view_in_portal")]; $actions[] = DropdownButton::DIVIDER; diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index f017264f7d..fed82e77dd 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -2795,6 +2795,7 @@ $LANG = array( 'item_details' => 'Item Details', 'send_item_details_help' => 'Send the line item details to the payment gateway.', 'view_proposal' => 'View Proposal', + 'view_in_portal' => 'View in Portal', ); diff --git a/resources/views/clients/show.blade.php b/resources/views/clients/show.blade.php index 1b8f2132b9..215b6d6f1d 100644 --- a/resources/views/clients/show.blade.php +++ b/resources/views/clients/show.blade.php @@ -197,7 +197,7 @@ @if (Auth::user()->confirmed && $client->account->enable_client_portal) {{ trans('texts.view_client_portal') }} + onclick="window.open('{{ $contact->link }}?silent=true', '_blank');return false;">{{ trans('texts.view_in_portal') }}
@endif
diff --git a/resources/views/invoices/knockout.blade.php b/resources/views/invoices/knockout.blade.php index 3c1480c221..eae180dd36 100644 --- a/resources/views/invoices/knockout.blade.php +++ b/resources/views/invoices/knockout.blade.php @@ -785,7 +785,7 @@ function ContactModel(data) { if (self.invitation_link()) { // clicking adds 'silent=true' however it's removed when copying the link str += '{{ trans('texts.view_as_recipient') }}'; + + '?silent=true\', \'_blank\');return false;">{{ trans('texts.view_in_portal') }}'; } @endif