Skip to content

Commit

Permalink
fix(project/new): extend new route from form route
Browse files Browse the repository at this point in the history
Since we moved the fetchProject call from the {{did-insert}} to the setupController
we need to extend the new route from the edit route.
  • Loading branch information
velrest committed Sep 28, 2021
1 parent eacdc4f commit e2837d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addon/routes/project/new.js
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit e2837d3

Please sign in to comment.