ImagesTable: Don't poll status when compose is complete
This commit is contained in:
parent
a6938b9f23
commit
17ff7d1c6d
1 changed files with 3 additions and 0 deletions
|
|
@ -52,6 +52,9 @@ class ImagesTable extends Component {
|
|||
pollComposeStatuses() {
|
||||
let { updateCompose, composes } = this.props;
|
||||
Object.entries(composes).map(([ id, compose ]) => {
|
||||
/* Skip composes that have been complete */
|
||||
if (compose.status === 'success' || compose.status === 'failure')
|
||||
return
|
||||
api.getComposeStatus(id).then(response => {
|
||||
let newCompose = {};
|
||||
newCompose[id] = Object.assign({}, compose, { status: response.status });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue