diff --git a/ui/app/routes/jobs/job/index.js b/ui/app/routes/jobs/job/index.js index 570b6fb3c..35cde30f4 100644 --- a/ui/app/routes/jobs/job/index.js +++ b/ui/app/routes/jobs/job/index.js @@ -1,6 +1,6 @@ import Route from '@ember/routing/route'; import { collect } from '@ember/object/computed'; -import { watchRecord, watchRelationship } from 'nomad-ui/utils/properties/watch'; +import { watchRecord, watchRelationship, watchAll } from 'nomad-ui/utils/properties/watch'; import WithWatchers from 'nomad-ui/mixins/with-watchers'; export default Route.extend(WithWatchers, { @@ -13,13 +13,15 @@ export default Route.extend(WithWatchers, { summary: this.get('watchSummary').perform(model), evaluations: this.get('watchEvaluations').perform(model), deployments: model.get('supportsDeployments') && this.get('watchDeployments').perform(model), + list: model.get('hasChildren') && this.get('watchAll').perform(), }); }, watch: watchRecord('job'), + watchAll: watchAll('job'), watchSummary: watchRelationship('summary'), watchEvaluations: watchRelationship('evaluations'), watchDeployments: watchRelationship('deployments'), - watchers: collect('watch', 'watchSummary', 'watchEvaluations', 'watchDeployments'), + watchers: collect('watch', 'watchAll', 'watchSummary', 'watchEvaluations', 'watchDeployments'), });