Skip to content

Fixes: #19492: Add Save Button to Script Output Window #19721

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

Merged
merged 3 commits into from
Jun 19, 2025

Conversation

Omripresent
Copy link
Contributor

Fixes: #19492: Add Save Button to Script Output Window

  • Added download button to script_result.html template following the same model of object_render_config.html
  • Added logic to ScriptResultView.get function to trigger content download when matching log or output.
    • Output export responds with the raw content of the script result
    • Log export responds with a CSV formatted content of the log table matching the visible table columns (works for both scripts and reports)

output download in ScriptResultView.get
@jeremystretch jeremystretch self-requested a review June 18, 2025 14:22
Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

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

Thanks @Omripresent!

@jeremystretch jeremystretch merged commit 7dab7d7 into netbox-community:main Jun 19, 2025
3 checks passed
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.

Add Save Button to Script Output Window
2 participants