Skip to content

Commit

Permalink
update resource labels
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wesely committed May 10, 2024
1 parent 0d56d4e commit e167cf5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/Filament/Resources/FilamentFormResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ class FilamentFormResource extends Resource

protected static ?int $navigationSort = 99;

public static function getBreadcrumb(): string
{
return config('filament-form-builder.admin-panel-resource-name-plural');
}

public static function getNavigationGroup(): ?string
{
return config('filament-form-builder.admin-panel-group-name');
Expand Down Expand Up @@ -77,7 +82,8 @@ public static function table(Table $table): Table
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
]);
])
->emptyStateHeading('No '.config('filament-form-builder.admin-panel-resource-name-plural'));
}

public static function getRelations(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public function getTitle(): string
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
Actions\CreateAction::make()
->label('Create '.config('filament-form-builder.admin-panel-resource-name')),
];
}
}
3 changes: 2 additions & 1 deletion src/Livewire/FilamentForm/Show.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ public function create()
],
);

return redirect(route(config('filament-form-builder.filament-form-user-show-route'), $entryModel));
return redirect()
->route(config('filament-form-builder.filament-form-user-show-route'), $entryModel);
}

public function parseValue(FilamentFormField $field, ?string $value): string
Expand Down

0 comments on commit e167cf5

Please sign in to comment.