diff --git a/ui/app/routes/jobs/job/versions.js b/ui/app/routes/jobs/job/versions.js index 2923c321c77b..fc2508e57b83 100644 --- a/ui/app/routes/jobs/job/versions.js +++ b/ui/app/routes/jobs/job/versions.js @@ -2,7 +2,6 @@ import Route from '@ember/routing/route'; import { collect } from '@ember/object/computed'; import { watchRecord, watchRelationship } from 'nomad-ui/utils/properties/watch'; import WithWatchers from 'nomad-ui/mixins/with-watchers'; - export default class VersionsRoute extends Route.extend(WithWatchers) { model() { const job = this.modelFor('jobs.job'); @@ -18,6 +17,5 @@ export default class VersionsRoute extends Route.extend(WithWatchers) { @watchRecord('job') watch; @watchRelationship('versions') watchVersions; - @collect('watch', 'watchVersions') watchers; } diff --git a/ui/app/templates/components/job-version.hbs b/ui/app/templates/components/job-version.hbs index fc219e964cda..a7076d75f905 100644 --- a/ui/app/templates/components/job-version.hbs +++ b/ui/app/templates/components/job-version.hbs @@ -10,7 +10,7 @@
{{#unless this.isCurrent}} - {{#if (can "run job")}} + {{#if (can "run job" namespace=this.version.job.namespace)}}