From d78650a5f416298caaf382c0571efdb7e4e8b75f Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Thu, 4 Apr 2024 06:28:59 +0300 Subject: [PATCH] add databaseNotifications and fix Select::configureUsing --- src/Providers/FilamentPanelProvider.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Providers/FilamentPanelProvider.php b/src/Providers/FilamentPanelProvider.php index e17dec5..3fc28f4 100644 --- a/src/Providers/FilamentPanelProvider.php +++ b/src/Providers/FilamentPanelProvider.php @@ -50,8 +50,8 @@ public static function panel(Panel $panel): Panel ]) // misc - //->databaseNotifications() - //->databaseNotificationsPolling('30s') + ->databaseNotifications() + ->databaseNotificationsPolling('30s') // lang switcher ->renderHook('panels::user-menu.profile.after', fn (): View => view('zeus-tartarus::hooks.user-menu-lang')) @@ -106,9 +106,12 @@ public static function configuringComponents(): void }); Select::configureUsing(function (Select $field) { - $field - ->searchable() - ->preload(); + /** @phpstan-ignore-next-line */ + if (! $field instanceof \Guava\FilamentIconPicker\Forms\IconPicker) { + $field + ->searchable() + ->preload(); + } }); }