Merge pull request #9359 from RoadieHQ/loading-progress-on-task-page

adds progress bar to the task page..
This commit is contained in:
Ben Lambert
2022-02-07 14:33:14 +01:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder': patch
---
Adds a loading bar to the scaffolder task page if the task is still loading. This can happen if it takes a while for a task worker to pick up a task.
@@ -21,6 +21,7 @@ import {
Lifecycle,
Page,
LogViewer,
Progress,
} from '@backstage/core-components';
import { useRouteRef } from '@backstage/core-plugin-api';
import { BackstageTheme } from '@backstage/theme';
@@ -352,6 +353,8 @@ export const TaskPage = ({ loadingText }: TaskPageProps) => {
</Paper>
</Grid>
<Grid item xs={9}>
{!currentStepId && <Progress />}
<div style={{ height: '80vh' }}>
<LogViewer text={logAsString} />
</div>