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

Convert song edit to React #1171

Merged
merged 1 commit into from
Jul 30, 2022
Merged

Convert song edit to React #1171

merged 1 commit into from
Jul 30, 2022

Conversation

ycanardeau
Copy link
Contributor

No description provided.

@ycanardeau ycanardeau added content: songs Song entries React JavaScript library: React labels Jul 29, 2022
@ycanardeau ycanardeau added this to the React conversion milestone Jul 29, 2022
@ycanardeau ycanardeau marked this pull request as ready for review July 29, 2022 23:32
<div className="editor-field">
<ReleaseEventLockingAutoComplete
basicEntryLinkStore={songEditStore.releaseEvent}
// TODO: createNewItem="Create new event '{0}'" /* TODO: localize */
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: VocaDbWeb/Scripts/Components/Song/SongEdit.tsx

// TODO: createNewItem="Create new event '{0}'" /* TODO: localize */

@ycanardeau
Copy link
Contributor Author

@Shiroizu This PR replaces /Song/Edit with /api/songs/:id, which affects Event Adder. You must also change EditedSong to contract, and specify a request token in the request header. To get your (temporary) request token, I think you can parse the response and search for requestToken. Feel free to use the beta site to test these changes.

See also #1133.

@ycanardeau
Copy link
Contributor Author

These changes have been deployed to the main site, but let me know if you need to use Event Adder right now. I can revert the changes.

@ycanardeau ycanardeau merged commit 28a4e27 into main Jul 30, 2022
@ycanardeau ycanardeau deleted the react-song-edit branch July 30, 2022 08:13
@Shiroizu
Copy link
Member

@ycanardeau Thanks, I'll update the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content: songs Song entries React JavaScript library: React
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants