-
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.
Merge branch 'main' into task/WP-729
- Loading branch information
Showing
21 changed files
with
748 additions
and
70 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
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
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
54 changes: 54 additions & 0 deletions
54
client/src/components/DataFiles/DataFilesModals/DataFilesLargeDownloadModal.jsx
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,54 @@ | ||
import React from 'react'; | ||
import { useDispatch } from 'react-redux'; | ||
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; | ||
import { Button, SectionMessage } from '_common'; | ||
import { useModal } from 'hooks/datafiles'; | ||
import styles from './DataFilesLargeDownloadModal.module.scss'; | ||
|
||
const DataFilesLargeDownloadModal = () => { | ||
const dispatch = useDispatch(); | ||
const { getStatus: getModalStatus } = useModal(); | ||
const isOpen = getModalStatus('largeDownload'); | ||
|
||
const toggle = () => { | ||
dispatch({ | ||
type: 'DATA_FILES_TOGGLE_MODAL', | ||
payload: { | ||
operation: 'largeDownload', | ||
props: {}, | ||
}, | ||
}); | ||
}; | ||
|
||
const openTabToGlobus = () => { | ||
window.open('https://docs.tacc.utexas.edu/basics/datatransfer/#globus'); | ||
}; | ||
|
||
return ( | ||
<Modal isOpen={isOpen} toggle={toggle} className="dataFilesModal"> | ||
<ModalHeader toggle={toggle} charCode=""> | ||
Large Download | ||
</ModalHeader> | ||
<ModalBody> | ||
<SectionMessage type="warn"> | ||
Your download is larger than 2 gigabytes. | ||
</SectionMessage> | ||
<p className={styles['info']}> | ||
Use Globus to quickly transfer large volumes of data. | ||
</p> | ||
</ModalBody> | ||
<ModalFooter> | ||
<Button | ||
type="primary" | ||
attr="submit" | ||
onClick={openTabToGlobus} | ||
className={styles['linkButton']} | ||
> | ||
Globus Data Transfer Guide | ||
</Button> | ||
</ModalFooter> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default DataFilesLargeDownloadModal; |
10 changes: 10 additions & 0 deletions
10
client/src/components/DataFiles/DataFilesModals/DataFilesLargeDownloadModal.module.scss
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,10 @@ | ||
/* Rules placed for consistent styling */ | ||
.info { | ||
margin-top: 1rem; | ||
margin-bottom: 0; | ||
} | ||
|
||
/* Enlarges the button to accommodate its text */ | ||
.linkButton { | ||
max-width: unset; | ||
} |
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
40 changes: 40 additions & 0 deletions
40
client/src/components/DataFiles/DataFilesModals/DataFilesNoFoldersModal.jsx
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,40 @@ | ||
import React from 'react'; | ||
import { useDispatch } from 'react-redux'; | ||
import { Modal, ModalHeader, ModalBody } from 'reactstrap'; | ||
import { useModal } from 'hooks/datafiles'; | ||
import { SectionMessage } from '_common'; | ||
import styles from './DataFilesNoFoldersModal.module.scss'; | ||
|
||
const DataFilesNoFoldersModal = () => { | ||
const dispatch = useDispatch(); | ||
const { getStatus: getModalStatus } = useModal(); | ||
const isOpen = getModalStatus('noFolders'); | ||
|
||
const toggle = () => { | ||
dispatch({ | ||
type: 'DATA_FILES_TOGGLE_MODAL', | ||
payload: { | ||
operation: 'noFolders', | ||
props: {}, | ||
}, | ||
}); | ||
}; | ||
|
||
return ( | ||
<Modal isOpen={isOpen} toggle={toggle} className="dataFilesModal"> | ||
<ModalHeader toggle={toggle} charCode=""> | ||
No Folders | ||
</ModalHeader> | ||
<ModalBody> | ||
<SectionMessage type="warn"> | ||
Folders can no longer be compressed. | ||
</SectionMessage> | ||
<p className={styles['info']}> | ||
Please individually select which files you would like to download. | ||
</p> | ||
</ModalBody> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default DataFilesNoFoldersModal; |
5 changes: 5 additions & 0 deletions
5
client/src/components/DataFiles/DataFilesModals/DataFilesNoFoldersModal.module.scss
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,5 @@ | ||
/* Rules placed for consistent styling */ | ||
.info { | ||
margin-top: 1rem; | ||
margin-bottom: 0; | ||
} |
Oops, something went wrong.