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

Add parent to element when copying in management #1067

Open
jochenklar opened this issue Jul 18, 2024 · 0 comments
Open

Add parent to element when copying in management #1067

jochenklar opened this issue Jul 18, 2024 · 0 comments

Comments

@jochenklar
Copy link
Member

Description / Beschreibung

Right now copying from the nested view does add the new element to the old parent, e.g. a copied section does not end up in the same catalog.

Expected behaviour / Erwartetes Verhalten

Copying elements should add them to the same parent.

Ideas

The parent needs to be a prop to the element component (e.g. here https://github.com/rdmorganiser/rdmo/blob/main/rdmo/management/assets/js/components/nested/NestedCatalog.js#L94) and then needs to be provoded to fetchCopy (https://github.com/rdmorganiser/rdmo/blob/main/rdmo/management/assets/js/components/element/Section.js#L29). Prferebly in the same format as for the createSection action ({ catalog }) so that the same syntax as in the factories can be used.

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

1 participant