-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Disable download button in response body #4476
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
Comments
...it works fine for me, try it out here: |
Hi @orbex!
Sure, here's a plugin that disables the Download button everywhere that HighlightCode is used: const HideResponseDownloadButtonPlugin = function(system) {
return {
wrapComponents: {
highlightCode: (Ori) => (props) => {
return system.React.createElement(Ori, Object.assign({}, props, { downloadable: false }))
}
}
}
}
It's meant to be working 😄 I'd hazard a guess that this is a browser bug, what OS/browser are you seeing this with? |
Thanks guys, will implement the plugin. |
Closing due to inactivity. This is simply to keep our issue tracker clean - feel free to comment if there are any further thoughts or concerns, and we'll be happy to reopen this issue. |
@orbex, looking through this again, my apologies for closing without wrapping this one up. We don't support Pale Moon, but if you ever figure out what's going wrong, we'd be happy to take a PR that fixes it there without breaking it anywhere else 😄 |
Is there any way to disable the grey download-button in the response body (besides setting display: none; in custom CSS) ?
At this moment it does not work anyway (just calls an empty js-function).
The text was updated successfully, but these errors were encountered: