Masea
Masea
FFilament
Created by Masea on 1/24/2024 in #❓┊help
Table actions have loading indicator at all times
Uh, I found the problem. I was including both @FilamentScripts and @livewireScripts. I now only include @FilamentScripts and it is working 😐 Thanks anyway
22 replies
FFilament
Created by Masea on 1/24/2024 in #❓┊help
Table actions have loading indicator at all times
What do u think
22 replies
FFilament
Created by Masea on 1/24/2024 in #❓┊help
Table actions have loading indicator at all times
Interestingly, it is on the every page outside my filament panel
22 replies
FFilament
Created by Masea on 1/24/2024 in #❓┊help
Table actions have loading indicator at all times
hold on, let me check
22 replies
FFilament
Created by Masea on 1/24/2024 in #❓┊help
Table actions have loading indicator at all times
no i don't have that directory
22 replies
FFilament
Created by Masea on 1/24/2024 in #❓┊help
Table actions have loading indicator at all times
"have you published any of Filament's views?" how can i make sure of that if i did? I don't quite remember that atm
22 replies
FFilament
Created by Masea on 1/24/2024 in #❓┊help
Table actions have loading indicator at all times
what else should not be working while a livewire request is being made?
22 replies
FFilament
Created by Masea on 1/24/2024 in #❓┊help
Table actions have loading indicator at all times
I am sure it is not related
22 replies
FFilament
Created by Masea on 1/24/2024 in #❓┊help
Table actions have loading indicator at all times
It was working with that error being apperant back in the time
22 replies
FFilament
Created by Masea on 1/24/2024 in #❓┊help
Table actions have loading indicator at all times
I can do everything as I would
22 replies
FFilament
Created by Masea on 1/24/2024 in #❓┊help
Table actions have loading indicator at all times
Livewire works btw
22 replies
FFilament
Created by Masea on 1/24/2024 in #❓┊help
Table actions have loading indicator at all times
No description
22 replies
FFilament
Created by Masea on 1/24/2024 in #❓┊help
Table actions have loading indicator at all times
Aynone please? Up
22 replies
FFilament
Created by bakriawad on 1/4/2024 in #❓┊help
Action modal in livewire component not working
I click the button, it loads for a a bit but the modal won't open
14 replies
FFilament
Created by bakriawad on 1/4/2024 in #❓┊help
Action modal in livewire component not working
backdrop is not visible either
14 replies
FFilament
Created by bakriawad on 1/4/2024 in #❓┊help
Action modal in livewire component not working
modal won't open
14 replies
FFilament
Created by bakriawad on 1/4/2024 in #❓┊help
Action modal in livewire component not working
The reason i am using a component instead of an action on the form is because i want it to be updated on the go thus the wire:poll attribute
14 replies
FFilament
Created by bakriawad on 1/4/2024 in #❓┊help
Action modal in livewire component not working
I am displaying this component on a filament form btw
14 replies
FFilament
Created by bakriawad on 1/4/2024 in #❓┊help
Action modal in livewire component not working
<div>
<div wire:poll.10s class="flex items-center justify-end">
@if ($this->syncAction->isVisible())
{{ $this->syncAction }}
@endif
</div>

<x-filament-actions::modals />
</div>
<div>
<div wire:poll.10s class="flex items-center justify-end">
@if ($this->syncAction->isVisible())
{{ $this->syncAction }}
@endif
</div>

<x-filament-actions::modals />
</div>
14 replies
FFilament
Created by bakriawad on 1/4/2024 in #❓┊help
Action modal in livewire component not working
class SyncStatusButton extends Component implements HasForms, HasActions
{
use InteractsWithActions, InteractsWithForms;

public ?Product $record = null;

public function render()
{
return view('filament.livewire.trendyol.sync-status-button');
}

public function syncAction(): Action
{
return Action::make('sync')
->label('Eşleşme')
->link()
->color('danger')
->icon('heroicon-o-x-mark')
->visible(fn () => $this->record && $this->record->trendyol)
->form([
Checkbox::make('delete_data')
->label('Veriyi de sil')
->helperText('İşaretlenirse ürün verisi de silinir.')
])
->action(function($data) {
foreach ($this->record->variants as $variant)
$variant->trendyol->unsync($data["delete_data"]);

return redirect($data["delete_data"] ? ProductResource::getUrl('index') : ProductResource::getUrl('edit', ['record' => $this->record]));
});
}
}
class SyncStatusButton extends Component implements HasForms, HasActions
{
use InteractsWithActions, InteractsWithForms;

public ?Product $record = null;

public function render()
{
return view('filament.livewire.trendyol.sync-status-button');
}

public function syncAction(): Action
{
return Action::make('sync')
->label('Eşleşme')
->link()
->color('danger')
->icon('heroicon-o-x-mark')
->visible(fn () => $this->record && $this->record->trendyol)
->form([
Checkbox::make('delete_data')
->label('Veriyi de sil')
->helperText('İşaretlenirse ürün verisi de silinir.')
])
->action(function($data) {
foreach ($this->record->variants as $variant)
$variant->trendyol->unsync($data["delete_data"]);

return redirect($data["delete_data"] ? ProductResource::getUrl('index') : ProductResource::getUrl('edit', ['record' => $this->record]));
});
}
}
Why this doesnt work on my end though? @awcodes
14 replies