Add cacheSchema shim for whitelist table

This commit is contained in:
root
2026-01-31 01:11:43 +02:00
parent 359d083592
commit 3fc3f28edc

View File

@@ -26,9 +26,14 @@ use Livewire\Component;
class WafWhitelistTable extends Component implements HasTable, HasSchemas, HasActions class WafWhitelistTable extends Component implements HasTable, HasSchemas, HasActions
{ {
use InteractsWithTable; use InteractsWithTable;
use InteractsWithSchemas; use InteractsWithSchemas { cacheSchema as protected filamentCacheSchema; }
use InteractsWithActions; use InteractsWithActions;
protected function cacheSchema(string $name, \Filament\Schemas\Schema|\Closure|null $schema = null): ?\Filament\Schemas\Schema
{
return $this->filamentCacheSchema($name, $schema);
}
#[On('waf-whitelist-updated')] #[On('waf-whitelist-updated')]
public function refreshWhitelist(): void public function refreshWhitelist(): void
{ {