Skip to content

Commit

Permalink
reuse project model
Browse files Browse the repository at this point in the history
  • Loading branch information
TangoYankee committed Oct 2, 2024
1 parent baccd56 commit 1265cde
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 4 additions & 0 deletions client/app/models/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,8 @@ export default class ProjectModel extends Model {
.sortBy('dcpPackageversion')
.reverse();
}

async submit() {
await super.save();
}
}
9 changes: 0 additions & 9 deletions client/app/models/projects-new.js

This file was deleted.

2 changes: 1 addition & 1 deletion client/app/routes/projects/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export default class ProjectsNewRoute extends Route.extend(AuthenticatedRouteMix
@service store;

async model() {
return await this.store.createRecord('projects-new');
return await this.store.createRecord('project');
}
}

0 comments on commit 1265cde

Please sign in to comment.