Loading client/src/components/JobStates/CollectionJobStates.vue +4 −1 Original line number Diff line number Diff line <template> <div v-if="!jobSourceType || jobSourceType == 'Job' || isTerminal"> <div v-if="!jobSourceType || jobSourceType == 'Job' || (isTerminal && !isErrored)"> {{ simpleDescription }} </div> <div v-else-if="!jobStatesSummary || !jobStatesSummary.hasDetails()"> Loading Loading @@ -52,6 +52,9 @@ export default { return DC_VIEW.collectionDescription(this.collection); }, errorDescription() { if (this.isPopulationFailed) { return `${this.collection.get("populated_state_message")}`; } var jobCount = this.jobCount; var errorCount = this.jobStatesSummary.numInError(); return `a ${this.collectionTypeDescription} with ${errorCount} / ${jobCount} jobs in error`; Loading client/src/components/JobStates/mixin.js +3 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,9 @@ export default { isErrored() { return this.jobStatesSummary && this.jobStatesSummary.errored(); }, isPopulationFailed() { return this.jobStatesSummary && this.jobStatesSummary.populationFailed(); }, isTerminal() { return this.jobStatesSummary && this.jobStatesSummary.terminal(); }, Loading client/src/mvc/history/job-states-model.js +5 −1 Original line number Diff line number Diff line Loading @@ -27,8 +27,12 @@ var JobStatesSummary = Backbone.Model.extend({ return !this.hasDetails() || this.get("populated_state") == "new"; }, populationFailed: function () { return this.get("populated_state") === POPULATED_STATE_FAILED; }, errored: function () { return this.get("populated_state") === POPULATED_STATE_FAILED || this.anyWithStates(ERROR_STATES); return this.populationFailed() || this.anyWithStates(ERROR_STATES); }, states: function () { Loading Loading
client/src/components/JobStates/CollectionJobStates.vue +4 −1 Original line number Diff line number Diff line <template> <div v-if="!jobSourceType || jobSourceType == 'Job' || isTerminal"> <div v-if="!jobSourceType || jobSourceType == 'Job' || (isTerminal && !isErrored)"> {{ simpleDescription }} </div> <div v-else-if="!jobStatesSummary || !jobStatesSummary.hasDetails()"> Loading Loading @@ -52,6 +52,9 @@ export default { return DC_VIEW.collectionDescription(this.collection); }, errorDescription() { if (this.isPopulationFailed) { return `${this.collection.get("populated_state_message")}`; } var jobCount = this.jobCount; var errorCount = this.jobStatesSummary.numInError(); return `a ${this.collectionTypeDescription} with ${errorCount} / ${jobCount} jobs in error`; Loading
client/src/components/JobStates/mixin.js +3 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,9 @@ export default { isErrored() { return this.jobStatesSummary && this.jobStatesSummary.errored(); }, isPopulationFailed() { return this.jobStatesSummary && this.jobStatesSummary.populationFailed(); }, isTerminal() { return this.jobStatesSummary && this.jobStatesSummary.terminal(); }, Loading
client/src/mvc/history/job-states-model.js +5 −1 Original line number Diff line number Diff line Loading @@ -27,8 +27,12 @@ var JobStatesSummary = Backbone.Model.extend({ return !this.hasDetails() || this.get("populated_state") == "new"; }, populationFailed: function () { return this.get("populated_state") === POPULATED_STATE_FAILED; }, errored: function () { return this.get("populated_state") === POPULATED_STATE_FAILED || this.anyWithStates(ERROR_STATES); return this.populationFailed() || this.anyWithStates(ERROR_STATES); }, states: function () { Loading