From 80246b4deb29a73179e7341f93d04cf2c91accee Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Tue, 20 Mar 2018 13:51:42 -0700 Subject: [PATCH] Perioidic and Parameterized jobs need to watch /jobs for child updates --- ui/app/routes/jobs/job/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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'), });