-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add "save image" button #29
Conversation
This solves #27 |
@@ -117,6 +117,12 @@ function Pane(id) { | |||
cloneButton.innerHTML = 'o'; | |||
cloneButton.title = 'disconnect'; | |||
|
|||
var saveButton = document.createElement('a'); | |||
saveButton.innerHTML = '⤓'; |
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.
It'd be nice to have something easier to read. The arrow is rather thin and hard to tell apart.
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.
saveButton.innerHTML = '⤓'; | ||
saveButton.title = 'save'; | ||
saveButton.download = 'untitled_image.jpg'; | ||
saveButton.href = ''; |
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.
We should make it show up only if the content is savable.
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.
Oh, I wasn't aware that the content can be unsavable. When can this happen? I thought the panes only show up for images and charts.
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.
Thanks for this.
Add a button to the bar that saves the currently displayed image.