-
Notifications
You must be signed in to change notification settings - Fork 0
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
DownloadLink checks Checksum, FileUpload displays Limit #213
base: main
Are you sure you want to change the base?
Conversation
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.
Let's get this merged... though please see code comment/suggestion
...mapGetters({ | ||
checksumsEnabled: 'candidateSettings/getUploadStatus', // Get checksumsEnabled from Vuex store | ||
}), |
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.
This component probably shouldn't access the store directly but instead have a checksumsEnabled
prop fed into it...
However if that would be a headache to roll out everywhere this component is used then let's stick with the current approach which nicely keeps everything in one place (just means we need the same store to exist in our apps that use this component) 🤓
FileUpload component now displays the accepted types and file size limit, as well as preventing uploads when the scanner status is offline.
I have also amended the way these props are accepted and used.
DownloadLink is now ready for checksums, altho there is a bypass which means that this component can be rolled out prior to checksum creation (thanks for the idea @warrensearle).