Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Bubballoo3
Copy link
Contributor

@Bubballoo3 Bubballoo3 commented Oct 16, 2025

Fixes #1269. Adds a button with a download link to the session directory that is only visible if the user is configured to download and the session has been completed. This should eliminate the risk of sensitive session info being present, but if we do want to exclude something from the download in the future that will be significant changes beyond these. It places the download button next to the 'Submit support ticket' link, which has been formatted as a button to match.

There was no clear method to create a download link, but from investigating the download urls provided by the files app, adding ?download=1 did the job. Elsewhere in the code I have seen download=${Date.now().toString()} but not sure what the date is used for and setting it to 1 did not affect my ability to download. Also added a localization item for the 'Download as zip' text.

Copy link
Contributor

@johrstrom johrstrom left a comment

Choose a reason for hiding this comment

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

LGTM.

@johrstrom johrstrom merged commit 4cac447 into master Oct 28, 2025
60 of 62 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting Review to Merged/Closed in PR Review Pipeline Oct 28, 2025
@johrstrom johrstrom deleted the zip-session-contents-button-1269 branch October 28, 2025 14:41
harshit-soora pushed a commit to harshit-soora/ondemand that referenced this pull request Oct 31, 2025
Add 'download as zip' button to sessions to completed sessions as a utility for support staff.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

convienence button to zip session directory

4 participants