Skip to content

Commit

Permalink
Merge pull request #4012 from hashicorp/b-ui-extraneous-deployment-wa…
Browse files Browse the repository at this point in the history
…tcher

UI: Extraneous deployment watcher
  • Loading branch information
DingoEatingFuzz authored Mar 20, 2018
2 parents 5adf8d8 + 725f6b9 commit 90d1bd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ test-ui: ## Run Nomad UI test suite
.PHONY: ember-dist
ember-dist: ## Build the static UI assets from source
@echo "--> Installing JavaScript assets"
@cd ui && yarn install
@cd ui && yarn install --silent
@cd ui && npm rebuild node-sass
@echo "--> Building Ember application"
@cd ui && npm run build
Expand Down
5 changes: 4 additions & 1 deletion ui/app/routes/jobs/job/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ import WithWatchers from 'nomad-ui/mixins/with-watchers';

export default Route.extend(WithWatchers, {
startWatchers(controller, model) {
if (!model) {
return;
}
controller.set('watchers', {
model: this.get('watch').perform(model),
summary: this.get('watchSummary').perform(model),
evaluations: this.get('watchEvaluations').perform(model),
deployments: this.get('watchDeployments').perform(model),
deployments: model.get('supportsDeployments') && this.get('watchDeployments').perform(model),
});
},

Expand Down

0 comments on commit 90d1bd2

Please sign in to comment.