@@ -34,6 +34,8 @@ import {
3434 CircularProgress ,
3535 Grid ,
3636 IconButton ,
37+ Menu ,
38+ MenuItem ,
3739 Tooltip ,
3840 Typography ,
3941} from '@material-ui/core' ;
@@ -43,10 +45,9 @@ import CloseIcon from '@material-ui/icons/Close';
4345import ErrorIcon from '@material-ui/icons/Error' ;
4446import { AlertTitle } from '@material-ui/lab' ;
4547import Alert from '@material-ui/lab/Alert' ;
46-
47- // FLPATH-2135
48- // import StartIcon from '@mui/icons-material/Start';
49- // import SwipeRightAltOutlinedIcon from '@mui/icons-material/SwipeRightAltOutlined';
48+ import ArrowDropDown from '@mui/icons-material/ArrowDropDown' ;
49+ import StartIcon from '@mui/icons-material/Start' ;
50+ import SwipeRightAltOutlinedIcon from '@mui/icons-material/SwipeRightAltOutlined' ;
5051
5152import {
5253 AssessedProcessInstanceDTO ,
@@ -360,21 +361,16 @@ export const WorkflowInstancePage = ({
360361 }
361362 disabled = { ! permittedToUse . allowed || ! canRerun }
362363 onClick = {
363- // Temporarily disable the "retrigger" as a workaround for FLPATH-2135.
364- // We will re-enable once the SonataFlow fixes the feature
365- handleRerun
366-
367- // value?.instance.state === ProcessInstanceStatusDTO.Error
368- // ? handleClick
369- // : handleRerun
364+ value ?. instance . state === ProcessInstanceStatusDTO . Error
365+ ? handleClick
366+ : handleRerun
367+ }
368+ endIcon = {
369+ value ?. instance . state ===
370+ ProcessInstanceStatusDTO . Error ? (
371+ < ArrowDropDown />
372+ ) : null
370373 }
371- // Commented-out for FLPATH-2135:
372- // endIcon={
373- // value?.instance.state ===
374- // ProcessInstanceStatusDTO.Error ? (
375- // <ArrowDropDown />
376- // ) : null
377- // }
378374 style = { { color : 'white' } }
379375 >
380376 { value . instance . state ===
@@ -389,8 +385,6 @@ export const WorkflowInstancePage = ({
389385 </ Button >
390386 </ Tooltip >
391387
392- { /*
393- Temporarily disable the "retrigger" as a workaround for FLPATH-2135.
394388 < Menu
395389 anchorEl = { anchorRef . current }
396390 open = { openRerunMenu }
@@ -413,7 +407,7 @@ export const WorkflowInstancePage = ({
413407 < SwipeRightAltOutlinedIcon />
414408 From failure point
415409 </ MenuItem >
416- </Menu> */ }
410+ </ Menu >
417411 </ Grid >
418412 </ Grid >
419413 </ ContentHeader >
0 commit comments