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

Prevent entity duplication in collection - Entity actions customization #598

Open
kmatsuleva opened this issue Dec 5, 2023 · 1 comment

Comments

@kmatsuleva
Copy link

Issue Overview:
I have a "Users" collection and I need to prevent the duplication of entities within it. However, I want to maintain permissions for create and edit operations.

Current Approach:
I'm currently using the onPreSave callback to check if the status is 'copy', and if so, I throw an error to prevent the duplication.

Desired Solution:
While the current approach prevents duplication during the save operation, I'd like to explore additional options to enhance the user experience. Specifically, I'd like to hide the 'Copy' option altogether for entities in the "Users" collection.

image

Is it possible?

Any help would be appreciated.

@fgatti675
Copy link
Member

Hi Katerina, thanks for reaching out!
This is not currently possible in v2.
We are revamping entity actions in v3, and you will be able to customise them altogether.
Keeping this ticket open as a feature request

@fgatti675 fgatti675 changed the title Prevent entity duplication in collection Prevent entity duplication in collection - Entity actions customization Dec 8, 2023
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

No branches or pull requests

2 participants