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

deposit: Save draft before creating/resubmitting a curation request #32

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

rekt-hard
Copy link
Contributor

@rekt-hard rekt-hard commented Oct 3, 2024

closes #23

Using good ol' vanilla js, first the save draft button is obtained from the document. Then the click action is called on the html element. It is assumed that only one element with the name save is present and this element is the save button.

This also handles all the state changing of the button, ensuring correct rendering.

Screencast.from.2024-10-03.12.11.27.webm

Copy link
Collaborator

@max-moser max-moser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for obvious reasons this is not exactly ideal, but from a practical point of view i'd say that it'll do for now.

thanks a lot for checking this out!

@rekt-hard rekt-hard merged commit 5e3d9d9 into main Oct 7, 2024
2 checks passed
@rekt-hard rekt-hard deleted the save-draft-before-curation branch October 7, 2024 06:43
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.

Save draft before creating a curation request
2 participants