-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dataset_security_feature' of https://github.com/bcgov/b…
…iohubbc-platform into dataset_security_feature
- Loading branch information
Showing
2 changed files
with
58 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Alert, AlertTitle, Typography } from '@mui/material'; | ||
import YesNoDialog from 'components/dialog/YesNoDialog'; | ||
|
||
interface IUnsecureDialogProps { | ||
isOpen: boolean; | ||
onClose: () => void; | ||
} | ||
const UnsecureDialog = (props: IUnsecureDialogProps) => { | ||
return ( | ||
<YesNoDialog | ||
open={props.isOpen} | ||
onYes={() => { | ||
console.log('Unsecure these fools'); | ||
}} | ||
onNo={props.onClose} | ||
onClose={() => {}} | ||
dialogTitle="Unsecure Records?" | ||
dialogContent={ | ||
<Alert severity="error" sx={{ marginTop: 4 }}> | ||
<AlertTitle color="black"> | ||
<strong>Open access to all records</strong> | ||
</AlertTitle> | ||
<Typography color={'black'}> | ||
Users will be able to access and download all records included in this dataset | ||
</Typography> | ||
</Alert> | ||
} | ||
dialogText="Are you sure you want to unsecure this dataset?" | ||
yesButtonProps={{ color: 'error' }} | ||
yesButtonLabel="UNSECURE" | ||
noButtonLabel="CANCEL" | ||
/> | ||
); | ||
}; | ||
|
||
export default UnsecureDialog; |