Skip to content

Commit

Permalink
allow to configer navigation group
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed May 13, 2023
1 parent 214ab6e commit 3ea10f3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions config/zeus-wind.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,9 @@
* set the default status that all messages will have when received.
*/
'default_status' => 'NEW',

/**
* Navigation Group Label
*/
'navigation_group_label' => 'wind',
];
5 changes: 5 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,10 @@ return [
* set the default status that all messages will have when received
*/
'default_status' => 'NEW',

/**
* Navigation Group Label
*/
'navigation_group_label' => 'wind',
];
```
2 changes: 1 addition & 1 deletion src/Filament/Resources/DepartmentResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ protected static function getNavigationLabel(): string

protected static function getNavigationGroup(): ?string
{
return __('Wind');
return __(config('zeus-wind.navigation_group_label', __('Wind')));
}
}
2 changes: 1 addition & 1 deletion src/Filament/Resources/LetterResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@ protected static function getNavigationLabel(): string

protected static function getNavigationGroup(): ?string
{
return __('Wind');
return __(config('zeus-wind.navigation_group_label', __('Wind')));
}
}

0 comments on commit 3ea10f3

Please sign in to comment.