From bcb2bf8929ed8b0b6345fcef6b12e203a91a81f3 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Fri, 29 May 2020 16:12:41 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20convert=20project=20for?= =?UTF-8?q?m=20to=20rose=20form=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/core/app/components/form/project/index.hbs | 44 +++++++------------ ui/core/app/routes/orgs/org/projects/new.js | 4 +- .../app/routes/orgs/org/projects/project.js | 4 +- 3 files changed, 17 insertions(+), 35 deletions(-) diff --git a/ui/core/app/components/form/project/index.hbs b/ui/core/app/components/form/project/index.hbs index 3842fc226..7541f8ed5 100644 --- a/ui/core/app/components/form/project/index.hbs +++ b/ui/core/app/components/form/project/index.hbs @@ -1,44 +1,30 @@ -
+ - + readonly={{false}} /> - + readonly={{false}} /> -
- - {{t 'actions.save'}} - + - - {{t 'actions.cancel'}} - -
- +
diff --git a/ui/core/app/routes/orgs/org/projects/new.js b/ui/core/app/routes/orgs/org/projects/new.js index d8ffa28ae..15402927d 100644 --- a/ui/core/app/routes/orgs/org/projects/new.js +++ b/ui/core/app/routes/orgs/org/projects/new.js @@ -31,9 +31,7 @@ export default class OrgsOrgProjectsNewRoute extends Route { * @param {Event} e */ @action - async save(project, e) { - // Prevent default behavior, since this was trigger from a form submission. - e.preventDefault(); + async save(project) { try { await project.save(); this.transitionTo('orgs.org.projects.project', project); diff --git a/ui/core/app/routes/orgs/org/projects/project.js b/ui/core/app/routes/orgs/org/projects/project.js index 5441e1aaa..8fa788bd3 100644 --- a/ui/core/app/routes/orgs/org/projects/project.js +++ b/ui/core/app/routes/orgs/org/projects/project.js @@ -44,9 +44,7 @@ export default class OrgsOrgProjectsProjectRoute extends Route { * @param {Event} e */ @action - async save(project, e) { - // Prevent default behavior, since this was trigger from a form submission. - e.preventDefault(); + async save(project) { try { await project.save(); } catch (e) {