Allow to wrap multiple uploads under the same directory #95
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Siderus/Orion!95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bugfix/96-open-properties-after-file-upload"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed?
If the user upload one file: just open the Property Window (Details)
If the user uploads multiple files (greater than 1) ask him/she if he/she wants to wrap the files, and then show just one property window for the wrapper. Otherwise fall back on the previous behavior (show the wrappers in an alert and allow to
Open in browser)This solves Redmine issue 96 and Github issue #87
@ -52,72 +52,114 @@ export function initIPFSClient () {}Docs, what does this do? Where could this be used?
It will simplify a lot if you could switch to always array (you can have an array of 1 element).
This will remove some conditions in the code and simplify the logic, but it will require on the implementation of the function to use arrays.
Don't mix types of variables
exactly this :D (see previous comment)
https://github.com/Siderus/Orion/pull/95/files#diff-45bba5770252947b22079e6d12f321dfR40
Is it returning a promise?
@ -7,0 +12,4 @@* @returns {boolean}*/function askWhetherToWrapAllFiles () {const buttons = ['No', 'Yes']well done :) Having this in a method will be useful!
Manually tested it Looks good to me, I would like just to change the type used for the params of
addFileOrFilesFromFSPathto be sure that is always the same type (array).Maybe in the future typescript will help us :)