Skip to content

Commit

Permalink
Add config key for navigation icon
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithDennis committed Dec 15, 2023
1 parent 451d3cd commit c2f1ef3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/resource-lock.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@

'manager' => [
'navigation_badge' => false,
'navigation_icon' => 'heroicon-o-lock-closed',
'navigation_label' => 'Resource Lock Manager',
'plural_label' => 'Resource Locks',
'navigation_group' => 'Settings',
Expand Down
8 changes: 7 additions & 1 deletion src/Resources/ResourceLockResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@

class ResourceLockResource extends Resource
{
protected static ?string $navigationIcon = 'heroicon-o-lock-closed';
/**
* @return string|null
*/
public static function getNavigationIcon(): ?string
{
return __(config('resource-lock.manager.navigation_icon', 'heroicon-o-lock-closed'));
}

public static function getModel(): string
{
Expand Down

0 comments on commit c2f1ef3

Please sign in to comment.