From a30c60cc030bb767cf7faef90560796e5676966f Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Thu, 22 Mar 2018 17:19:59 -0700 Subject: [PATCH] Always use the job plain id and job namespace in job links --- ui/app/controllers/allocations/allocation.js | 4 ++-- ui/app/controllers/jobs/job.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/app/controllers/allocations/allocation.js b/ui/app/controllers/allocations/allocation.js index 6aa0e219b..4f44f27bf 100644 --- a/ui/app/controllers/allocations/allocation.js +++ b/ui/app/controllers/allocations/allocation.js @@ -10,9 +10,9 @@ export default Controller.extend({ label: this.get('model.job.name'), args: [ 'jobs.job', - this.get('model.job'), + this.get('model.job.plainId'), qpBuilder({ - jobNamespace: this.get('model.namespace.name') || 'default', + jobNamespace: this.get('model.job.namespace.name') || 'default', }), ], }, diff --git a/ui/app/controllers/jobs/job.js b/ui/app/controllers/jobs/job.js index d641d5d0a..29c87a2a2 100644 --- a/ui/app/controllers/jobs/job.js +++ b/ui/app/controllers/jobs/job.js @@ -10,7 +10,7 @@ export default Controller.extend({ label: this.get('model.name'), args: [ 'jobs.job', - this.get('model'), + this.get('model.plainId'), qpBuilder({ jobNamespace: this.get('model.namespace.name') || 'default', }),