Skip to content

Commit

Permalink
Refactor icon configuration for email resource
Browse files Browse the repository at this point in the history
The 'icon' property was added to the 'filament-email' configuration while 'navigation_icon' was removed from the configuration and README file. The reference to 'navigation_icon' was also updated to 'resource.icon' in EmailResource class to reflect these changes.
  • Loading branch information
sitenzo committed May 6, 2024
1 parent daa12af commit a5450a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ return [
'model' => Email::class,
'group' => null,
'sort' => null,
'icon' => null,
'default_sort_column' => 'created_at',
'default_sort_direction' => 'desc',
'datetime_format' => 'Y-m-d H:i:s',
Expand All @@ -67,7 +68,6 @@ return [
'cc',
'bcc',
],
'navigation_icon' => 'heroicon-o-envelope',
],

'keep_email_for_days' => 60,
Expand Down
2 changes: 1 addition & 1 deletion config/filament-email.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
'model' => Email::class,
'group' => null,
'sort' => null,
'icon' => null,
'default_sort_column' => 'created_at',
'default_sort_direction' => 'desc',
'datetime_format' => 'Y-m-d H:i:s',
Expand All @@ -20,7 +21,6 @@
'cc',
'bcc',
],
'navigation_icon' => null,
],

'keep_email_for_days' => 60,
Expand Down
2 changes: 1 addition & 1 deletion src/Filament/Resources/EmailResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function getNavigationLabel(): string

public static function getNavigationIcon(): string | Htmlable | null
{
return config('filament-email.navigation_icon') ?? 'heroicon-o-envelope';
return config('filament-email.resource.icon') ?? 'heroicon-o-envelope';
}

public static function getNavigationGroup(): ?string
Expand Down

0 comments on commit a5450a4

Please sign in to comment.