ImagesTable: Fix status bug
Fixes #899. The status of images (parent images and clones) in the clones table was displayed incorrectly - the 'highest priority' (e.g. failure > success) was displayed for all images. This was due to a bug in a conditional in the ImageBuildStatus component. In the main images table, rows for AWS images should display the highest priority status of *all* images. A single failed clone should cause the status of the row in the main images table to be failure, even if the parent compose status is successful. This logic was incorrectly being applied to *all* statuses. This commit fixes this - from now on, this logic is only used for rows in the main images table.
This commit is contained in:
parent
03b22647c5
commit
670f1c106f
3 changed files with 14 additions and 4 deletions
|
|
@ -497,7 +497,7 @@ describe('Images Table', () => {
|
|||
expect(row.cells[5]).toHaveTextContent('Expired');
|
||||
} else {
|
||||
renderWithProvider(
|
||||
<ImageBuildStatus imageId={compose.id} />,
|
||||
<ImageBuildStatus imageId={compose.id} isImagesTableRow={true} />,
|
||||
testElement,
|
||||
state
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue