mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-23 14:48:35 +00:00
model show
This commit is contained in:
parent
12d6e48357
commit
6f0a0f8ae2
@ -11,9 +11,9 @@ import {
|
|||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
Grid,
|
Grid,
|
||||||
Modal,
|
|
||||||
Stack,
|
Stack,
|
||||||
Table,
|
Table,
|
||||||
|
Modal,
|
||||||
TableBody,
|
TableBody,
|
||||||
TableCell,
|
TableCell,
|
||||||
TableHead,
|
TableHead,
|
||||||
@ -427,17 +427,32 @@ export default function ProcessModelShow() {
|
|||||||
const confirmOverwriteFileDialog = () => {
|
const confirmOverwriteFileDialog = () => {
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
danger
|
|
||||||
open={showOverwriteConfirmationPrompt}
|
open={showOverwriteConfirmationPrompt}
|
||||||
data-qa="file-overwrite-modal-confirmation-dialog"
|
onClose={handleOverwriteFileCancel}
|
||||||
modalHeading={`Overwrite the file: ${duplicateFilename}`}
|
aria-labelledby="modal-modal-title"
|
||||||
modalLabel="Overwrite file?"
|
aria-describedby="modal-modal-description"
|
||||||
primaryButtonText="Yes"
|
>
|
||||||
secondaryButtonText="Cancel"
|
<Box sx={{position: 'absolute',
|
||||||
onSecondarySubmit={handleOverwriteFileCancel}
|
top: '50%',
|
||||||
onRequestSubmit={handleOverwriteFileConfirm}
|
left: '50%',
|
||||||
onRequestClose={handleOverwriteFileCancel}
|
transform: 'translate(-50%, -50%)',
|
||||||
/>
|
width: 400,
|
||||||
|
bgcolor: 'background.paper',
|
||||||
|
border: '2px solid #000',
|
||||||
|
boxShadow: 24,
|
||||||
|
p: 4,}}>
|
||||||
|
<Typography id="modal-modal-title" variant="h6" component="h2">
|
||||||
|
Overwrite the file: {duplicateFilename}
|
||||||
|
</Typography>
|
||||||
|
<Typography id="modal-modal-description" sx={{ mt: 2 }}>
|
||||||
|
Are you sure you want to overwrite this file?
|
||||||
|
</Typography>
|
||||||
|
<Stack direction="row" justifyContent="flex-end" spacing={2} sx={{mt: 2}}>
|
||||||
|
<Button onClick={handleOverwriteFileCancel} variant="outlined">Cancel</Button>
|
||||||
|
<Button onClick={handleOverwriteFileConfirm} variant="contained" color="error">Yes</Button>
|
||||||
|
</Stack>
|
||||||
|
</Box>
|
||||||
|
</Modal>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
const displayOverwriteConfirmation = (filename: string) => {
|
const displayOverwriteConfirmation = (filename: string) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user