Skip to content

Commit

Permalink
Merge pull request #19 from lara-zeus/databaseNotifications
Browse files Browse the repository at this point in the history
add databaseNotifications and fix Select::configureUsing
  • Loading branch information
atmonshi authored Apr 4, 2024
2 parents ca36456 + d78650a commit f8c7c00
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 f8c7c00

Please sign in to comment.