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

added citation field to create source #68

Merged
merged 1 commit into from Feb 10, 2021

Conversation

Marie000
Copy link
Contributor

@Marie000 Marie000 commented Feb 5, 2021

So I think it works. I am not completely sure because I still get that bug where I can't click on the (i) icon to see the source metadata. But I checked that the body sent to the API contains citation: {default: '....'}

@@ -79,6 +79,7 @@
const body = Object.fromEntries(
new URLSearchParams(new FormData(target)).entries()
);
if (body.citation) body.citation = {default: body.citation}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know if that was the right place to do that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Long term, the update, create, and delete functions for a source should be consolidated into a Source model but we aren't there yet so, in the meantime, this place is as good as any 🙂

Copy link
Contributor

@baldurbjarnason baldurbjarnason left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@@ -79,6 +79,7 @@
const body = Object.fromEntries(
new URLSearchParams(new FormData(target)).entries()
);
if (body.citation) body.citation = {default: body.citation}
Copy link
Contributor

Choose a reason for hiding this comment

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

Long term, the update, create, and delete functions for a source should be consolidated into a Source model but we aren't there yet so, in the meantime, this place is as good as any 🙂

@Marie000 Marie000 merged commit c1486a4 into rebus-ink:master Feb 10, 2021
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.

None yet

2 participants