From e2837d3825369033bf14b8e876b9bacddf7b7449 Mon Sep 17 00:00:00 2001 From: Jonas Cosandey Date: Tue, 28 Sep 2021 10:23:28 +0200 Subject: [PATCH] fix(project/new): extend new route from form route Since we moved the fetchProject call from the {{did-insert}} to the setupController we need to extend the new route from the edit route. --- addon/routes/project/new.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addon/routes/project/new.js b/addon/routes/project/new.js index c0e48fec..d16ca29a 100644 --- a/addon/routes/project/new.js +++ b/addon/routes/project/new.js @@ -1,8 +1,9 @@ -import Route from "@ember/routing/route"; import { inject as service } from "@ember/service"; import ConstructionProject from "ember-ebau-gwr/models/construction-project"; -export default class ProjectNewRoute extends Route { +import FormRoute from "./form"; + +export default class ProjectNewRoute extends FormRoute { @service constructionProject; @service config;