Skip to content

Commit

Permalink
add databaseNotifications and fix Select::configureUsing
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Apr 4, 2024
1 parent ca36456 commit d78650a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/Providers/FilamentPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down Expand Up @@ -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();
}
});
}

Expand Down

0 comments on commit d78650a

Please sign in to comment.