-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
task/FP-1102 - Add ability to compress folder to folder download mess…
…age modal (#499) * Updated DataFilesDownloadMessageModal.js to compress folders for download * added fixture and updated DataFilesDownloadMessageModal.test.js * fixed linting errors * fixed one more linting error * Added styleName to match recent changes to DataFileCompressModal.js Co-authored-by: Sal Tijerina <r.sal.tijerina@gmail.com>
- Loading branch information
1 parent
b59f54b
commit c91caf3
Showing
3 changed files
with
209 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...t/src/components/DataFiles/DataFilesModals/tests/DataFilesDownloadMessageModal.fixture.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
const DataFilesDownloadMessageModalFixture = { | ||
operationStatus: { | ||
copy: {}, | ||
compress: {} | ||
}, | ||
listing: { | ||
FilesListing: { | ||
name: 'testfile', | ||
path: '/testfile', | ||
lastModified: '2020-07-01T10:12:36-05:00', | ||
length: 4096, | ||
permissions: 'ALL', | ||
format: 'folder', | ||
system: 'test.system', | ||
mimeType: 'text/directory', | ||
type: 'dir' | ||
} | ||
}, | ||
params: { | ||
FilesListing: { | ||
api: 'tapis', | ||
scheme: 'private', | ||
system: 'test.system', | ||
path: '' | ||
} | ||
}, | ||
selected: { | ||
FilesListing: [0], | ||
modal: [] | ||
}, | ||
modals: { | ||
copy: true, | ||
downloadMessage: true | ||
} | ||
}; | ||
|
||
export default DataFilesDownloadMessageModalFixture; |
7 changes: 2 additions & 5 deletions
7
client/src/components/DataFiles/DataFilesModals/tests/DataFilesDownloadMessageModal.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters