diff --git a/app/Filament/Resources/OrganisationResource/RelationManagers/DocumentsRelationManager.php b/app/Filament/Resources/OrganisationResource/RelationManagers/DocumentsRelationManager.php index 2a88d27..b5f7b5e 100644 --- a/app/Filament/Resources/OrganisationResource/RelationManagers/DocumentsRelationManager.php +++ b/app/Filament/Resources/OrganisationResource/RelationManagers/DocumentsRelationManager.php @@ -116,8 +116,7 @@ public static function table(Table $table): Table ->headerActions([ ExportAction::make(), - Tables\Actions\CreateAction::make() - ->disabled(fn (self $livewire) => $livewire->getOwnerRecord()->isInactive()), + Tables\Actions\CreateAction::make(), ]) ->actions([ Tables\Actions\ViewAction::make(), diff --git a/app/Filament/Resources/OrganisationResource/RelationManagers/ResourcesRelationManager.php b/app/Filament/Resources/OrganisationResource/RelationManagers/ResourcesRelationManager.php index 26b9af0..1e76db5 100644 --- a/app/Filament/Resources/OrganisationResource/RelationManagers/ResourcesRelationManager.php +++ b/app/Filament/Resources/OrganisationResource/RelationManagers/ResourcesRelationManager.php @@ -170,8 +170,7 @@ public static function table(Table $table): Table ->modalHeading(__('resource.modal.heading')) ->modalSubheading(__('resource.modal.subheading')) ->modalWidth('4xl') - ->slideOver() - ->disabled(fn (self $livewire) => $livewire->getOwnerRecord()->isInactive()), + ->slideOver(), ]) ->actions([ Tables\Actions\ViewAction::make(), diff --git a/app/Filament/Resources/OrganisationResource/RelationManagers/UsersRelationManager.php b/app/Filament/Resources/OrganisationResource/RelationManagers/UsersRelationManager.php index 01ab9e4..49677c7 100644 --- a/app/Filament/Resources/OrganisationResource/RelationManagers/UsersRelationManager.php +++ b/app/Filament/Resources/OrganisationResource/RelationManagers/UsersRelationManager.php @@ -104,8 +104,7 @@ public static function table(Table $table): Table $data['role'] = UserRole::ORG_ADMIN; return $data; - }) - ->disabled(fn (self $livewire) => $livewire->getOwnerRecord()->isInactive()), + }), ]) ->actions([ Tables\Actions\ViewAction::make(), diff --git a/app/Filament/Resources/OrganisationResource/RelationManagers/VolunteersRelationManager.php b/app/Filament/Resources/OrganisationResource/RelationManagers/VolunteersRelationManager.php index d4b8524..0dda4fd 100644 --- a/app/Filament/Resources/OrganisationResource/RelationManagers/VolunteersRelationManager.php +++ b/app/Filament/Resources/OrganisationResource/RelationManagers/VolunteersRelationManager.php @@ -136,8 +136,7 @@ public static function table(Table $table): Table ->modalHeading(__('volunteer.modal.heading')) ->modalSubheading(__('volunteer.modal.subheading')) ->modalWidth('4xl') - ->slideOver() - ->disabled(fn (self $livewire) => $livewire->getOwnerRecord()->isInactive()), + ->slideOver(), ]) ->actions([ Tables\Actions\ViewAction::make(),