diff --git a/client/app/models/project.js b/client/app/models/project.js index dcf7ae07..d3302998 100644 --- a/client/app/models/project.js +++ b/client/app/models/project.js @@ -233,4 +233,8 @@ export default class ProjectModel extends Model { .sortBy('dcpPackageversion') .reverse(); } + + async submit() { + await super.save(); + } } diff --git a/client/app/models/projects-new.js b/client/app/models/projects-new.js deleted file mode 100644 index b3289ef8..00000000 --- a/client/app/models/projects-new.js +++ /dev/null @@ -1,9 +0,0 @@ -import Model, { attr } from '@ember-data/model'; - -export default class ProjectsNewModel extends Model { - @attr('string') dcpProjectname; - - async submit() { - await super.save(); - } -} diff --git a/client/app/routes/projects/new.js b/client/app/routes/projects/new.js index 3e3f5c08..4483eec6 100644 --- a/client/app/routes/projects/new.js +++ b/client/app/routes/projects/new.js @@ -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'); } }