F
Filament10mo ago
Robin

Loading indicator

I got a custom action on a custom filament page, it's looping through an array, for each of the elements the action is present, when clicking on the action, the loading indicator displays on all the other actions(I haven't clicked on them).
5 Replies
LeandroFerreira
LeandroFerreira10mo ago
please share some code you are trying to achieve
Robin
RobinOP10mo ago
@foreach ($rooms as $room)
<div wire:key="{{ $room->id }}">
<div class="flex justify-end">
<x-filament::badge color="{{ $room->status->getColor() }}" class="w-max">
{{ $room->status->getLabel() }}
</x-filament::badge>
</div>
{{ $this->cancelAction }

</div>
@endforeach
@foreach ($rooms as $room)
<div wire:key="{{ $room->id }}">
<div class="flex justify-end">
<x-filament::badge color="{{ $room->status->getColor() }}" class="w-max">
{{ $room->status->getLabel() }}
</x-filament::badge>
</div>
{{ $this->cancelAction }

</div>
@endforeach
Robin
RobinOP10mo ago
Sure, used some other 'hacky' way to pass the arguments but this should fix the issue thanks 👍
FL
FL7mo ago
disabled

Did you find this page helpful?