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 Save and Ingest functionality. #706

Merged
merged 1 commit into from
Dec 27, 2017
Merged

Add Save and Ingest functionality. #706

merged 1 commit into from
Dec 27, 2017

Conversation

tpendragon
Copy link
Contributor

Closes #637.

Copy link
Member

@hackartisan hackartisan left a comment

Choose a reason for hiding this comment

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

This looks great. I just had one comment about the submit selector.

@@ -84,7 +84,7 @@ export default class SaveWorkControl {
if (!this.form) {
return
}
this.saveButton = this.element.find(':submit')
this.saveButton = this.element.find(':submit').not("*[data-save-and-ingest]")
Copy link
Member

Choose a reason for hiding this comment

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

Is there another way to achieve this, maybe by adding a class to the desired save button? On the one hand I didn't know about this not and it's interesting. But on the other hand it feels like we shouldn't need to remember to come in here and make exceptions when adding new buttons.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. Fixed.

@hackartisan hackartisan merged commit a987f96 into master Dec 27, 2017
@hackartisan hackartisan deleted the save_and_ingest branch December 27, 2017 18:05
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.

2 participants