mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-23 14:48:35 +00:00
lint
This commit is contained in:
parent
2ea150bf69
commit
fe2ace1353
@ -1,5 +1,12 @@
|
|||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { Dialog, DialogTitle, DialogContent, DialogActions, Button, Typography } from '@mui/material';
|
import {
|
||||||
|
Dialog,
|
||||||
|
DialogTitle,
|
||||||
|
DialogContent,
|
||||||
|
DialogActions,
|
||||||
|
Button,
|
||||||
|
Typography,
|
||||||
|
} from '@mui/material';
|
||||||
|
|
||||||
interface ProcessModelFileUploadModalProps {
|
interface ProcessModelFileUploadModalProps {
|
||||||
showFileUploadModal: boolean;
|
showFileUploadModal: boolean;
|
||||||
@ -76,7 +83,11 @@ export default function ProcessModelFileUploadModal({
|
|||||||
<Button onClick={handleOverwriteFileCancel} color="primary">
|
<Button onClick={handleOverwriteFileCancel} color="primary">
|
||||||
Cancel
|
Cancel
|
||||||
</Button>
|
</Button>
|
||||||
<Button onClick={handleOverwriteFileConfirm} color="primary" autoFocus>
|
<Button
|
||||||
|
onClick={handleOverwriteFileConfirm}
|
||||||
|
color="primary"
|
||||||
|
autoFocus
|
||||||
|
>
|
||||||
Yes
|
Yes
|
||||||
</Button>
|
</Button>
|
||||||
</DialogActions>
|
</DialogActions>
|
||||||
@ -94,18 +105,29 @@ export default function ProcessModelFileUploadModal({
|
|||||||
>
|
>
|
||||||
<DialogTitle id="upload-dialog-title">Upload File</DialogTitle>
|
<DialogTitle id="upload-dialog-title">Upload File</DialogTitle>
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
<Typography>Max file size is 500mb. Only .bpmn, .dmn, .json, and .md files are supported.</Typography>
|
<Typography>
|
||||||
|
Max file size is 500mb. Only .bpmn, .dmn, .json, and .md files are
|
||||||
|
supported.
|
||||||
|
</Typography>
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
accept=".bpmn,.dmn,.json,.md"
|
accept=".bpmn,.dmn,.json,.md"
|
||||||
onChange={(event: React.ChangeEvent<HTMLInputElement>) => setFilesToUpload(event.target.files ? Array.from(event.target.files) : null)}
|
onChange={(event: React.ChangeEvent<HTMLInputElement>) =>
|
||||||
|
setFilesToUpload(
|
||||||
|
event.target.files ? Array.from(event.target.files) : null,
|
||||||
|
)
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
<DialogActions>
|
<DialogActions>
|
||||||
<Button onClick={handleFileUploadCancel} color="primary">
|
<Button onClick={handleFileUploadCancel} color="primary">
|
||||||
Cancel
|
Cancel
|
||||||
</Button>
|
</Button>
|
||||||
<Button onClick={handleLocalFileUpload} color="primary" disabled={filesToUpload === null}>
|
<Button
|
||||||
|
onClick={handleLocalFileUpload}
|
||||||
|
color="primary"
|
||||||
|
disabled={filesToUpload === null}
|
||||||
|
>
|
||||||
Upload
|
Upload
|
||||||
</Button>
|
</Button>
|
||||||
</DialogActions>
|
</DialogActions>
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
import { Rule, CheckCircle, Cancel } from '@mui/icons-material';
|
import { Rule, CheckCircle, Cancel } from '@mui/icons-material';
|
||||||
import { Button, Dialog, DialogTitle, DialogContent, DialogActions, IconButton } from '@mui/material';
|
import {
|
||||||
|
Button,
|
||||||
|
Dialog,
|
||||||
|
DialogTitle,
|
||||||
|
DialogContent,
|
||||||
|
DialogActions,
|
||||||
|
IconButton,
|
||||||
|
} from '@mui/material';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { useUriListForPermissions } from '../hooks/UriListForPermissions';
|
import { useUriListForPermissions } from '../hooks/UriListForPermissions';
|
||||||
import HttpService from '../services/HttpService';
|
import HttpService from '../services/HttpService';
|
||||||
@ -142,9 +149,7 @@ export default function ProcessModelTestRun({
|
|||||||
className={classNameForModal}
|
className={classNameForModal}
|
||||||
>
|
>
|
||||||
<DialogTitle>{modalHeading}</DialogTitle>
|
<DialogTitle>{modalHeading}</DialogTitle>
|
||||||
<DialogContent>
|
<DialogContent>{testCaseFormattedResultTag()}</DialogContent>
|
||||||
{testCaseFormattedResultTag()}
|
|
||||||
</DialogContent>
|
|
||||||
<DialogActions>
|
<DialogActions>
|
||||||
<Button onClick={() => setShowTestCaseResultsModal(false)}>OK</Button>
|
<Button onClick={() => setShowTestCaseResultsModal(false)}>OK</Button>
|
||||||
</DialogActions>
|
</DialogActions>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user