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.
This commit is contained in:
Michael Klein 2022-02-16 17:42:26 +01:00
parent 913eee982a
commit 3202e5036d
1 changed files with 1 additions and 1 deletions

View File

@ -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) {