diff --git a/cds/modules/theme/assets/bootstrap3/js/cds_deposit/avc/components/cdsDeposit.js b/cds/modules/theme/assets/bootstrap3/js/cds_deposit/avc/components/cdsDeposit.js index c7de1fa1f..6e1724691 100644 --- a/cds/modules/theme/assets/bootstrap3/js/cds_deposit/avc/components/cdsDeposit.js +++ b/cds/modules/theme/assets/bootstrap3/js/cds_deposit/avc/components/cdsDeposit.js @@ -236,7 +236,16 @@ function cdsDepositCtrl( }; }); _.forEach(that.record._cds.state, function (value, state) { - that.stateReporter[state].status = value; + if (!that.stateReporter[state]) { + // Task not in mainStatuses, add `file_video_extract_chapter_frames` + that.stateReporter[state] = { + status: value, + message: state + }; + } else { + // Update existing + that.stateReporter[state].status = value; + } }); that.calculateCurrentDepositStatus(); }; @@ -471,8 +480,10 @@ function cdsDepositCtrl( } that.currentStartedTaskName = currentStartedTaskName; - // Change the Deposit Status - var values = _.values(that.record._cds.state); + // Change the Deposit Status, ignore `file_video_extract_chapter_frames` + var values = _.values( + _.omit(that.record._cds.state, "file_video_extract_chapter_frames") + ); if (!values.length) { that.currentDepositStatus = null; } else if (values.includes(depositStatuses.FAILURE)) { diff --git a/cds/modules/theme/assets/bootstrap3/js/cds_deposit/avc/filters/overallState.js b/cds/modules/theme/assets/bootstrap3/js/cds_deposit/avc/filters/overallState.js index 762774541..ff54133cc 100644 --- a/cds/modules/theme/assets/bootstrap3/js/cds_deposit/avc/filters/overallState.js +++ b/cds/modules/theme/assets/bootstrap3/js/cds_deposit/avc/filters/overallState.js @@ -3,7 +3,7 @@ import _ from "lodash"; function overallState(depositStatuses) { return function (tasks) { - var values = _.values(tasks); + var values = _.values(_.omit(tasks, "file_video_extract_chapter_frames")); if (values.length !== 0) { if (_.includes(values, "FAILURE")) { return depositStatuses.FAILURE;