Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve and fix Replicate Form action #209

Merged
merged 1 commit into from
Nov 17, 2023
Merged

improve and fix Replicate Form action #209

merged 1 commit into from
Nov 17, 2023

Conversation

atmonshi
Copy link
Member

No description provided.

Copy link

what-the-diff bot commented Nov 17, 2023

PR Summary

  • Added a safety check in 'FieldsContract.php'
    An extra condition was implemented in src/Fields/FieldsContract.php to ensure the dataSource class already exists. This will prevent any possible issues or crashes if the class does not exist.

  • Introduced new 'ReplicateFormAction.php' file
    We have added a new file called src/Filament/Actions/ReplicateFormAction.php. This file includes a fresh class ReplicateFormAction that follows the ReplicatesRecords format. This particular class enhances the action process with the addition of an icon, label and form fields for better user experience.

  • Updated 'FormResource.php' with 'ReplicateFormAction'
    In src/Filament/Resources/FormResource.php, the old 'ReplicateAction' has been replaced by the more efficient ReplicateFormAction class, increasing the performance of the form resource.

@atmonshi atmonshi merged commit 2116f7d into 2.x Nov 17, 2023
3 checks passed
@atmonshi atmonshi deleted the fix-replicate-action branch November 17, 2023 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant