-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
extract create modal actions #1516
extract create modal actions #1516
Conversation
packages/admin/src/Resources/Pages/ListRecords/Concerns/CanCreateRecords.php
Outdated
Show resolved
Hide resolved
…hoong/filament into extract-create-modal-actions
…hoong/filament into extract-create-modal-actions
Method names like |
Will look into both. Actually the purpose of extracting is I want to remove createAndCreateAnother. Do you think it would be better to:
|
How about |
global options are great, but i would also like to be able to set this per resource as well. |
this will result to $this->getCreateActionCreateModalAction(),
$this->getCreateActionCreateAndCreateAnotherModalAction(),
$this->getCreateActionCancelModalAction(), is that ok? |
…hoong/filament into extract-create-modal-actions
Yup that's fine |
the PR is ready, it's now is more than just extracting modal actions 😅 but it's to make resource actions consistent with RM. one part I'm not sure is it the best to set the static property globally with FilamentManager and RelationManager |
Thanks. I have simplified this a bit, mostly by removing the facade option. I've also moved a couple of the static methods onto the trait instead of the relation manager, which means you need to disable these actions for each type of relation manager instead of all at once. This just helps us keep the maintenance overhead for this feature low. |
No description provided.