F
Filamentβ€’9mo 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
LeandroFerreiraβ€’9mo ago
please share some code you are trying to achieve
Robin
RobinOPβ€’9mo 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
RobinOPβ€’9mo ago
Sure, used some other 'hacky' way to pass the arguments but this should fix the issue thanks πŸ‘
FL
FLβ€’6mo ago
disabled
Want results from more Discord servers?
Add your server