|
@@ -370,14 +370,18 @@ const ScenarioEditDialog = ({ scenario, submit, open, actionEdit, configs, close
|
|
<DialogActions>
|
|
<DialogActions>
|
|
<Stack direction="row" justifyContent="space-between" sx={ActionContentSx}>
|
|
<Stack direction="row" justifyContent="space-between" sx={ActionContentSx}>
|
|
{actionEdit && (
|
|
{actionEdit && (
|
|
- <Button
|
|
|
|
- variant="outlined"
|
|
|
|
- color="error"
|
|
|
|
- onClick={onConfirmDialogOpen}
|
|
|
|
- disabled={!scenario || !scenario[ScFProps.deletable]}
|
|
|
|
- >
|
|
|
|
- Delete
|
|
|
|
- </Button>
|
|
|
|
|
|
+ <Tooltip title={scenario && scenario[ScFProps.deletable]}>
|
|
|
|
+ <span>
|
|
|
|
+ <Button
|
|
|
|
+ variant="outlined"
|
|
|
|
+ color="error"
|
|
|
|
+ onClick={onConfirmDialogOpen}
|
|
|
|
+ disabled={!scenario || !scenario[ScFProps.deletable]}
|
|
|
|
+ >
|
|
|
|
+ Delete
|
|
|
|
+ </Button>
|
|
|
|
+ </span>
|
|
|
|
+ </Tooltip>
|
|
)}
|
|
)}
|
|
<Button variant="outlined" color="inherit" onClick={close}>
|
|
<Button variant="outlined" color="inherit" onClick={close}>
|
|
Cancel
|
|
Cancel
|