Skip to content

Commit a29fb46

Browse files
MarkMark
authored andcommitted
added config options for customizing navigation the correct way
1 parent 02f1bdf commit a29fb46

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/Resources/MailResource.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,27 +47,27 @@ public static function getModel(): string
4747

4848
public static function getNavigationGroup(): ?string
4949
{
50-
return __('Emails');
50+
return __(config('filament-mails.navigation.group') ?? 'Emails');
5151
}
5252

5353
public static function getNavigationLabel(): string
5454
{
55-
return __('Emails');
55+
return __(config('filament-mails.navigation.label') ?? 'Emails');
5656
}
5757

5858
public static function getLabel(): ?string
5959
{
60-
return __('Email');
60+
return __(config('filament-mails.label') ?? 'Email');
6161
}
6262

6363
public static function getNavigationIcon(): ?string
6464
{
65-
return 'heroicon-o-envelope';
65+
return config('filament-mails.navigation.icon') ?? 'heroicon-o-envelope';
6666
}
6767

6868
public function getTitle(): string
6969
{
70-
return __('Emails');
70+
return __(config('filament-mails.title') ?? 'Emails');
7171
}
7272

7373
public static function infolist(Infolist $infolist): Infolist

0 commit comments

Comments
 (0)