-
Notifications
You must be signed in to change notification settings - Fork 43
resources: smoother icon downloading (fixes #9307) #9424
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
Conversation
Saby-Bishops
left a comment
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.
Please add a screenshot of the output, and include the relevant issue number in the PR description for easier tracking.
Done^ Please check |
jessewashburn
left a comment
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's nice that it refreshes after you remove an attachment, but you should not be able to do this, per the original issue (checked even when there is no attachment):
Also, If you include fixes #9307 in the body of the PR, it is much easier for the reviewers to directly link to the original issue.
e67c215 to
47710f6
Compare
Mutugiii
left a comment
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.
Mutugiii
left a comment
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.
Additional note, the showDownloadCheckbox and disableDownload variables are basically inverses most of the time. Sticking to one is ideal to reduce maintenance overhead
| this.file = null; | ||
| this.fileInput.clearFile(); | ||
| this.disableDownload = !this.existingResource.doc?._attachments || this.attachmentMarkedForDeletion; | ||
| this.disableDownload = true; |
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.
setting this to always true leads to a regression when editing a resource with a downloadable attachment.
Steps to test:
- Open an existing resource that already has an attachment (Edit mode).
- Attach a new file -> "Choose File"
- Remove the newly attached file
Result: The "File downloadable" checkbox disappears

Fixes #9307
Fixed the checkbox enabled problem when file is deleted after selecting from local files. Checkbox automatically gets refreshed if file is deleted and not uploaded.
After Deleting File