Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

add alert when uploading multiple files#259

Merged
dnarcese merged 3 commits intomasterfrom
ui
Jul 20, 2017
Merged

add alert when uploading multiple files#259
dnarcese merged 3 commits intomasterfrom
ui

Conversation

@dnarcese
Copy link
Copy Markdown
Contributor

@dnarcese dnarcese commented Jul 19, 2017

Fixes #247
Fixes #248

@dnarcese dnarcese requested a review from ericawright July 19, 2017 21:27

uploadPageLearnMore = Learn more
uploadPageDropMessage = Drop your files here to start uploading
uploadPageDropMessage = Drop your file here to start uploading
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Once we have other translations we'll need to change the key when we need to make changes to the string like this. For example if we were to change it back to "files" in v2 we'd rename the key to something likeuploadPageDropMultipleMessage or uploadPageDropMessage2.

}
file = event.originalEvent.dataTransfer.files[0];
} else {
if (event.target.files.length > 1){
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think this case will ever happen as long as we don't have multiple on the input element, but there's no harm in checking here too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's true, I can remove that check.

@dnarcese dnarcese merged commit f816c0b into master Jul 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants