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:
parent
913eee982a
commit
3202e5036d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue