Skip to content

Commit

Permalink
Merge pull request #41 from adriaardila/2.x
Browse files Browse the repository at this point in the history
Add option to not show in navigation
  • Loading branch information
Jehizkia authored May 24, 2024
2 parents 165911e + ab4d1d8 commit 67f1d71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/resource-lock.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
'navigation_group' => 'Settings',
'navigation_sort' => 1,
'limited_access' => false,
'should_register_navigation' => true,
// 'gate' => ''
],

Expand Down
5 changes: 5 additions & 0 deletions src/Resources/ResourceLockResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,9 @@ public static function getNavigationSort(): ?int
{
return config('resource-lock.manager.navigation_sort');
}

public static function shouldRegisterNavigation(): bool
{
return config('resource-lock.manager.should_register_navigation', true);
}
}

0 comments on commit 67f1d71

Please sign in to comment.