Skip to content

Allow user reselect photos from gdrive after deleting all rows from table #50

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

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

sonegillis
Copy link
Contributor

When the user select photos from gdrive and later deletes all of them, he still remains on thesame step with the button "Upload to wikimedia commons" and when he clicks on it, an empty filelist is uploaded. Below is an image to show what is explained above
gcommons-1

The following are steps taken to solve the issue above

  • Display to user the view to select photos from google drive when user clears the table with picked files
  • Edit the call to gapi auth loader to occur only when the oauthToken is not defined to avoid the auth loader called again

sonegillis and others added 12 commits March 12, 2020 19:50
- give margin between select and upload button
…upload to wikimedia commons

- Change the way disabling upload button works as it doesnt prevent the user from clicking multiple time
…er clears the table with picked files

- Edit the call to gapi auth loader to occur only when the oauthToken is not defined to avoid the auth loader called again
Add spinner that displays on the upload button when user clicks to
@sonegillis
Copy link
Contributor Author

Ok, thanks for the review. I'm on it

…er clears the table with picked files

- Edit the call to gapi auth loader to occur only when the oauthToken is not defined to avoid the auth loader called again
@sonegillis
Copy link
Contributor Author

Hello @tonythomas01, I have done the changes as you requested. I have also added a modal to display the files that weren't uploaded and the reason for the failed upload. For example I added these photos from my google drive as shown in this image
error-msg-3
And after clicking the upload button this is the result
error-message
We can see that images that weren't uploaded displayed in the modal with the error message for each message while the successful ones are displayed as normal

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.

3 participants