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

Gdrive folder select #5

Merged
merged 6 commits into from Aug 2, 2015
Merged

Gdrive folder select #5

merged 6 commits into from Aug 2, 2015

Conversation

jkayani
Copy link
Contributor

@jkayani jkayani commented Jul 22, 2015

Re-opening the pull request I had earlier. I modified the UI code to be more user-friendly, though it's still slightly flawed. I like this approach much better than what I had before; it imitates the Google Drive Picker more closely.

Added an option to change which GDrive folder the screenshot is saved
to. Uses an HTML <select> tag to populate a list of folders in the users
GDrive.
Uses the GDrive API to let a user select the folder he/she wants to save
the screenshot into. Uses an HTML <select> tag to populate a list of
folders and subfolders
I changed the <select> tag code so that choosing a folder would populate
the tag with subfolder options, an option to use the current folder's
"root", and an option to go up a folder. Basic file traversal for
picking a GDrive folder
method once, instead of having a different call under each scenario
in the if/else branch.
@rojer
Copy link
Owner

rojer commented Aug 2, 2015

sorry for the delay in review, finally got to it and i like what i see. pretty neat way of dealing with hierarchical folders, good job!

this is pretty much ok to merge, other than formatting: can you please make the new code match existing style? namely, tabs -> spaces, tab stop = 2 instead of 8.

@rojer
Copy link
Owner

rojer commented Aug 2, 2015

oh, and please remove "folder select" from the html page, it's pretty obvious what the dropdown is.

- Converted tabs to 2 spaces
- Removed the "Folder select" text from `edit.html`
@jkayani
Copy link
Contributor Author

jkayani commented Aug 2, 2015

I committed the changes you prescribed above. Glad I could contribute to the extension (it's my first pull request and project I've ever used Github with). Thanks a lot!

@rojer
Copy link
Owner

rojer commented Aug 2, 2015

ok Josh, this looks good, i'm merging it.
a few more style nits, but i'll fix them up myself.

thanks again for your work! this will go out with the next beta (once i finish some refactoring i've been doing around full page captures).

rojer added a commit that referenced this pull request Aug 2, 2015
@rojer rojer merged commit d408dfa into rojer:master Aug 2, 2015
@jkayani jkayani deleted the gdrive-folder-select branch August 4, 2015 21:02
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.

None yet

2 participants