Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] spinner asset on tables #5185

Closed
malek77z opened this issue Jul 5, 2023 · 4 comments
Closed

[Bug] spinner asset on tables #5185

malek77z opened this issue Jul 5, 2023 · 4 comments
Assignees
Labels

Comments

@malek77z
Copy link

malek77z commented Jul 5, 2023

Bug report

On the list page table loading, the spinner is broken.
The source of this is how the processing image is loaded in datatables_logic.blade.php line 237

              "processing":     "<img src='{{ asset('storage/basset/vendor/backpack/crud/src/resources/assets/img/spinner.svg') }}' alt='{{ trans('backpack::crud.processing') }}'>",

Note, line 16 seems to be trying to load or store the same asset:

  @basset(base_path('vendor/backpack/crud/src/resources/assets/img/spinner.svg'))

though basset, but its not showing up anywhere.

What I did

This should be seen on any list page, although hard to see as data loads in soon after.

What I expected to happen

spinner to show

What happened

Spinner does not show and has broken image instead. Also confirmed no basset file was created

What I've already tried to fix it

I'm just changing to my version datatables_logic.blade.php for now, so there is a work around

@malek77z malek77z added the triage label Jul 5, 2023
@tabacitu
Copy link
Member

Hi @malek77z ,

That is odd. It seems to be working for me, both on local and in our online demo:

CleanShot 2023-07-11 at 10 42 24

(1) Are you having the same problem in our online demo too? https://demo.backpackforlaravel.com/admin/article

(2) Are you seeing any JS errors in your Chrome DevTools?

(3) How about after a php artisan basset:fresh? Still having this problem?

Cheers!

@tabacitu
Copy link
Member

Also:

(4) What theme and colorScheme are you using when you get this problem?

@tabacitu tabacitu self-assigned this Jul 11, 2023
@tabacitu
Copy link
Member

Sorry @malek77z since I couldn't reproduce this problem, I'm going to close this issue. If you're still having this problem, please reply with answers to the 4 questions above and I'm happy to take another look.

Cheers!

@xprotocol-bot
Copy link

xprotocol-bot commented Apr 8, 2024

Hello!

On my local this is what happened
I have a spinner stucked at the bottom of the page

I then have to remove this line

@basset(base_path('vendor/backpack/crud/src/resources/assets/img/spinner.svg'))

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

3 participants