-
Notifications
You must be signed in to change notification settings - Fork 80
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
Uploading preview adjustments #241
Uploading preview adjustments #241
Conversation
@flamerohr, thanks for your PR! By analyzing the blame information on this pull request, I identified @chillu, @clarkepaul and @sminnee to be potential reviewers |
3a31447
to
29677b1
Compare
@@ -154,13 +154,17 @@ class GalleryItem extends SilverStripeComponent { | |||
return this.props.item.exists; | |||
} | |||
|
|||
uploading() { |
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.
Masking a prop in a trivial getter seems unnecessary here - it just makes the code harder to read. What's the rationale for this?
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.
The intent was that the exists()
function was already in place and I was originally tweaking that function instead.
Turned out it needed splitting out and I had found it easier to read this.uploading()
alongside this.exists()
as opposed to mixing this.props.uploading
with this.exists()
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.
Yep, makes sense
Feedback on commit message: You can leave out the URL if its on the same repo, so this should be:
Also, careful with line length on commit message first lines - it should be less than 100 chars or so, otherwise most git repo browsers (like github) will cut it |
d119c05
to
27ef3be
Compare
Rebased on master and force pushed. |
fixes #221
Also fixes:
handleAddedFile
returns a promise, so it can be chained for unit testing (and if the caller wants to chain something else)Found new issue
Gallery.handleCancelUpload()
is broken