Skip to content

Commit 2ab77e3

Browse files
authored
fix(orchestrator): run button should match figma (#601)
Signed-off-by: Lior Soffer <liorsoffer1@gmail.com>
1 parent 75ca5cf commit 2ab77e3

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-orchestrator': patch
3+
---
4+
5+
run again button text is running while workflow is running

workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowInstancePage.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,15 @@ export const WorkflowInstancePage = ({
377377
// }
378378
style={{ color: 'white' }}
379379
>
380-
Rerun
380+
{value.instance.state ===
381+
ProcessInstanceStatusDTO.Active ? (
382+
<>
383+
<CircularProgress color="inherit" size="0.75rem" />
384+
&nbsp;Running...
385+
</>
386+
) : (
387+
'Run again'
388+
)}
381389
</Button>
382390
</Tooltip>
383391

0 commit comments

Comments
 (0)