-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Austenem/CAT-1084 Add manifest success alert (#3658)
* add alert * add changelog
- Loading branch information
Showing
7 changed files
with
40 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Added informative alert upon successful bulk download manifest download. |
25 changes: 25 additions & 0 deletions
25
context/app/static/js/components/bulkDownload/BulkDownloadSuccessAlert.tsx
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,25 @@ | ||
import React from 'react'; | ||
import { useBulkDownloadStore } from 'js/stores/useBulkDownloadStore'; | ||
import { Alert } from 'js/shared-styles/alerts/Alert'; | ||
import OutboundLink from 'js/shared-styles/Links/OutboundLink'; | ||
import { LINKS } from 'js/components/bulkDownload/constants'; | ||
|
||
function BulkDownloadSuccessAlert() { | ||
const { downloadSuccess, setDownloadSuccess } = useBulkDownloadStore(); | ||
|
||
if (!downloadSuccess) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<Alert onClose={() => setDownloadSuccess(false)} $marginBottom={10}> | ||
Download successful. In order to download the files that are in the manifest file,{' '} | ||
<OutboundLink href={LINKS.installation}>install</OutboundLink> the HuBMAP CLT and follow{' '} | ||
<OutboundLink href={LINKS.documentation}>instructions</OutboundLink> for how to use it with the manifest file. | ||
{/* TODO: uncomment once tutorial is up */} | ||
{/* A tutorial is available to guide you through the entire process. */} | ||
</Alert> | ||
); | ||
} | ||
|
||
export default BulkDownloadSuccessAlert; |
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
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