Skip to content

Adds edit and view buttons, #1752 #1755

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

Closed
wants to merge 1 commit into from
Closed

Adds edit and view buttons, #1752 #1755

wants to merge 1 commit into from

Conversation

dsblank
Copy link
Member

@dsblank dsblank commented Sep 10, 2016

Puts [Edit] and [View] buttons before the trashcan. Allows editing and viewing of files. Addresses #1752

@@ -595,6 +597,20 @@ define([
$('.delete-button').css('display', 'none');
}

// View is visible when an item is renderable or downloadable
Copy link
Member

Choose a reason for hiding this comment

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

I think these are only going to be appropriate for the length === 1 case. I don't think we can open all the selected files at once.

Copy link
Member Author

Choose a reason for hiding this comment

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

I considered that, but I have already found this useful (eg, for "grading" in a non-nbgrader environment).

Copy link
Member

Choose a reason for hiding this comment

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

Oh, I meant literally "can't" because I assumed the browser wouldn't let us open a bunch of new tabs/windows. Does it really work?

Copy link
Member Author

Choose a reason for hiding this comment

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

As far as I have tested, it seems to work (Chrome). I had to create a local variable to assign the window to, otherwise I only got the one window. I haven't checked to see if there is a maximum number ... yet.

@gnestor
Copy link
Contributor

gnestor commented Sep 26, 2016

@dsblank I'm happy to help with this PR. Can you make the changes suggested by @minrk or check the "Allow edits from maintainers" box in the right column on this page and I will give it a try?

@takluyver
Copy link
Member

Ping @dsblank - do you have time to finish this up, or should @gnestor take it over and push it to completion?

@takluyver takluyver added this to the 4.3 milestone Nov 12, 2016
@takluyver
Copy link
Member

@gnestor I'd like to land this as part of the push towards 4.3. Can you make a branch from @dsblank's branch, fix the things discussed above, and open a new PR?

@gnestor
Copy link
Contributor

gnestor commented Nov 17, 2016

@takluyver Sure thing!

gnestor added a commit to gnestor/notebook that referenced this pull request Nov 17, 2016
@dsblank
Copy link
Member Author

dsblank commented Nov 18, 2016

Thanks for picking this up!

@takluyver
Copy link
Member

Closing this in favour of #1905, which build on it.

@takluyver takluyver closed this Nov 19, 2016
@takluyver takluyver modified the milestones: no action, 4.3 Nov 19, 2016
gnestor added a commit to gnestor/notebook that referenced this pull request Jan 25, 2017
gnestor added a commit to gnestor/notebook that referenced this pull request Jan 25, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants