Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwesely authored and github-actions[bot] committed Aug 5, 2024
1 parent bc3ffe6 commit 55a6f70
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ public function table(Table $table): Table
->headerActions([
Tables\Actions\CreateAction::make()
->visible(function () use ($form) {
return !$form->locked;
return ! $form->locked;
})
->label('Create Field'),
Action::make('lock_fields')
->requiresConfirmation()
->modalHeading('Lock Form Fields. Doing this will lock the forms fields and new fields will no longer be able to be changed or edited')
->visible(function () use ($form) {
return !$form->locked;
return ! $form->locked;
})
->action(function () use ($form) {
$form->update([
Expand All @@ -113,18 +113,18 @@ public function table(Table $table): Table
->actions([
Tables\Actions\EditAction::make()
->visible(function () use ($form) {
return !$form->locked;
return ! $form->locked;
}),
Tables\Actions\DeleteAction::make()
->visible(function () use ($form) {
return !$form->locked;
return ! $form->locked;
}),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make()
->visible(function () use ($form) {
return !$form->locked;
return ! $form->locked;
}),
]),
]);
Expand Down

0 comments on commit 55a6f70

Please sign in to comment.