File tree Expand file tree Collapse file tree
plugins/orchestrator/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @red-hat-developer-hub/backstage-plugin-orchestrator ' : patch
3+ ---
4+
5+ Add aborted as a result to WorkflowResult
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ const useStyles = makeStyles(theme => ({
7474const finalStates : ProcessInstanceStatusDTO [ ] = [
7575 ProcessInstanceStatusDTO . Error ,
7676 ProcessInstanceStatusDTO . Completed ,
77- ProcessInstanceStatusDTO . Aborted ,
77+
7878 ProcessInstanceStatusDTO . Suspended ,
7979] ;
8080
@@ -124,7 +124,15 @@ const ResultMessage = ({
124124 </ Box >
125125 ) ;
126126 } else if ( ! error && ! resultMessage ) {
127- if ( status && finalStates . includes ( status ) ) {
127+ if ( status === ProcessInstanceStatusDTO . Aborted ) {
128+ statusComponent = (
129+ < Box sx = { { width : '100%' } } >
130+ < Alert severity = "info" >
131+ < AlertTitle > Run has aborted</ AlertTitle >
132+ </ Alert >
133+ </ Box >
134+ ) ;
135+ } else if ( status && finalStates . includes ( status ) ) {
128136 statusComponent = (
129137 < Box sx = { { width : '100%' } } >
130138 < Alert severity = "success" >
You can’t perform that action at this time.
0 commit comments