Skip to content

Commit

Permalink
Issue krayin#596 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendra-webkul committed Nov 9, 2021
1 parent 9421c60 commit cc9c9b5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
7 changes: 6 additions & 1 deletion packages/Webkul/Admin/src/Config/acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,16 @@
'name' => 'admin::app.acl.edit',
'route' => ['admin.quotes.edit', 'admin.quotes.update'],
'sort' => 2,
], [
'key' => 'quotes.print',
'name' => 'admin::app.acl.print',
'route' => 'admin.quotes.print',
'sort' => 3,
], [
'key' => 'quotes.delete',
'name' => 'admin::app.acl.delete',
'route' => ['admin.quotes.delete', 'admin.quotes.mass_delete'],
'sort' => 3,
'sort' => 4,
], [
'key' => 'mail',
'name' => 'admin::app.acl.mail',
Expand Down
1 change: 1 addition & 0 deletions packages/Webkul/Admin/src/Resources/lang/en/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@
'create' => 'Create',
'edit' => 'Edit',
'view' => 'View',
'print' => 'Print',
'delete' => 'Delete',
'mass-delete' => 'Mass Delete',
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,13 @@
</li>
@endif

<li>
<a :href="'{{ route('admin.quotes.print') }}/' + quote.id" target="_blank">
{{ __('admin::app.leads.export-to-pdf') }}
</a>
</li>
@if (bouncer()->hasPermission('quotes.print'))
<li>
<a :href="'{{ route('admin.quotes.print') }}/' + quote.id" target="_blank">
{{ __('admin::app.leads.export-to-pdf') }}
</a>
</li>
@endif

@if (bouncer()->hasPermission('quotes.delete'))
<li @click="removeQuote(quote)">
Expand Down

0 comments on commit cc9c9b5

Please sign in to comment.