-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 empty cart button in admin cart #3316
Conversation
The frontend has an empty cart button and the API supports an empty cart call. This adds that functionality to the backend interface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ericsaupe, great work! Going to only change the PR title so it will be easier to add a Changelog entry on the next release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ericsaupe thank you 👍
} | ||
|
||
this.model.empty({ | ||
success: () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to the ES6 arrow syntax on this one line, Uglifier has to be put in harmony mode to run Solidus 2.10. This should probably be changed back to ES5 syntax for better compatibility. We shouldn't have to run Uglifier in harmony mode just to get this one line to minify properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, Matt! We would need to either process this file with Babel or update the syntax. I vote for the latter.
@pelargir want to send a PR?
Description
The frontend has an empty cart button and the API supports an
empty cart call. This adds that functionality to the backend
interface.
Checklist: