From 3202e5036d41daf2da302ff06215ffd3323c926a Mon Sep 17 00:00:00 2001 From: Michael Klein Date: Wed, 16 Feb 2022 17:42:26 +0100 Subject: [PATCH] refact: use `idWithNamespace` in serialize hook jobs.job This will give us 'correct' URLs for free when we only pass a `job`-model to a `LinkTo` that links to the `jobs.job.*`-routes. --- ui/app/routes/jobs/job.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/routes/jobs/job.js b/ui/app/routes/jobs/job.js index 85de41c25..e5a50d939 100644 --- a/ui/app/routes/jobs/job.js +++ b/ui/app/routes/jobs/job.js @@ -11,7 +11,7 @@ export default class JobRoute extends Route { @service token; serialize(model) { - return { job_name: JSON.parse(model.get('id')).join('@') }; + return { job_name: model.get('idWithNamespace') }; } model(params) {