File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1313use Filament \Tables \Table ;
1414use Illuminate \Support \Facades \Auth ;
1515use Spatie \Activitylog \Models \Activity ;
16+ use UnitEnum ;
1617
1718/**
1819 * User Activities Page.
@@ -61,10 +62,14 @@ public static function getNavigationSort(): ?int
6162 /**
6263 * Get the navigation icon.
6364 */
64- public static function getNavigationIcon (): ? string
65+ public static function getNavigationGroup (): null | string | UnitEnum
6566 {
66- return config ('filament-activity-log.pages.user_activities.navigation_icon ' )
67- ?? 'heroicon-o-users ' ;
67+ try {
68+ return ActivityLogPlugin::get ()->getNavigationGroup ();
69+ } catch (\Throwable $ e ) {
70+ return config ('filament-activity-log.pages.user_activities.navigation_group ' )
71+ ?? config ('filament-activity-log.resource.group ' );
72+ }
6873 }
6974
7075 /**
You can’t perform that action at this time.
0 commit comments