Skip to content

Commit bcba821

Browse files
scott graysonscott grayson
authored andcommitted
Remove bulk permissions action from toolbar
- Remove BulkManagePermissionsAction from LibraryItemResource toolbar - Remove unused import for BulkManagePermissionsAction - Add comment to BulkManagePermissionsAction indicating it's currently unused - Keep the action file for potential future use
1 parent 9e72ecd commit bcba821

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/Resources/LibraryItemResource.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Filament\Tables;
1818
use Filament\Tables\Table;
1919
use Tapp\FilamentLibrary\Models\LibraryItem;
20-
use Tapp\FilamentLibrary\Tables\Actions\BulkManagePermissionsAction;
2120

2221
class LibraryItemResource extends Resource
2322
{
@@ -290,7 +289,6 @@ public static function table(Table $table): Table
290289
])
291290
->toolbarActions([
292291
BulkActionGroup::make([
293-
BulkManagePermissionsAction::make(),
294292
DeleteBulkAction::make()
295293
->visible(fn (): bool => auth()->user() && auth()->user()->can('delete', LibraryItem::class))
296294
->successRedirectUrl(function () {

src/Tables/Actions/BulkManagePermissionsAction.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
namespace Tapp\FilamentLibrary\Tables\Actions;
44

5+
/**
6+
* NOTE: This bulk action is currently unused in the LibraryItemResource.
7+
* It was removed from the toolbar actions but kept for potential future use.
8+
*/
9+
510
use Filament\Actions\BulkAction;
611
use Filament\Forms\Components\Select;
712
use Filament\Forms\Components\Placeholder;
@@ -26,10 +31,6 @@ protected function setUp(): void
2631
->color('warning')
2732
->visible(fn (): bool => auth()->user() && FilamentLibraryPlugin::isLibraryAdmin(auth()->user()))
2833
->form([
29-
Placeholder::make('general_access_section')
30-
->label('General Access')
31-
->content('Set the overall access level for these items'),
32-
3334
Select::make('general_access')
3435
->label('General Access')
3536
->options([
@@ -39,7 +40,6 @@ protected function setUp(): void
3940
->default('private')
4041
->required()
4142
->helperText('This determines who can see these items by default'),
42-
4343
Placeholder::make('user_permissions_section')
4444
->label('User Permissions')
4545
->content('Grant specific permissions to selected users'),

0 commit comments

Comments
 (0)