rxcod9 / joy-voyager-export

Joy VoyagerExport module adds bulk export feature to Voyager.
https://joy-voyager.herokuapp.com
MIT License
7 stars 1 forks source link

Display import/export buttons #9

Closed frozar closed 2 years ago

frozar commented 2 years ago

I continue to test joy-voyager-export on Laravel 9 with my minimal example repository. I continue the process to install this package with these commands :

php artisan vendor:publish --provider="Joy\VoyagerExport\VoyagerExportServiceProvider" --force
php artisan vendor:publish --provider="Joy\VoyagerExport\VoyagerExportServiceProvider" --tag=voyager-actions-views --force

I cannot see the import/export buttons in the administration panel of voyager, in the BREAD section. The minimal repository is in this state currently.

rxcod9 commented 2 years ago

If you don’t see the export action button in “/admin/articles” try running “php artisan optimize”

If you meant “/admin/bread”, this package is not adding export buttons in tools->bread page but it is done in integration demo https://github.com/rxcod9/joy-voyager-laravel-demo/blob/main/resources/views/vendor/voyager/tools/bread/index.blade.php

frozar commented 2 years ago

I just run php artisan optimize and serve to visit the page /admin/articles : Screenshot from 2022-04-19 09-03-01

As you can see, even on this page I don't the import/export button.

rxcod9 commented 2 years ago

You need to have atleast one record to have bulk action visible

frozar commented 2 years ago

Ok, now I see an export button when I added one article in my case. So it works.

I understand that in case no article is present, I cannot export them. But I must say, I was expecting to be able to import articles even when none of them have been added yet.

You can close this Issue as the project works, but it would be nice to always display the import button. What do you think about that?

rxcod9 commented 2 years ago

Added a new issue in import package and linked reference

rxcod9 commented 2 years ago

https://joy-voyager.herokuapp.com/admin/calls this seems to work with joy/voyager-datatable