Skip to content

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)

@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
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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