From 06211f2a7f2cf082f957849dc66012982d976ada Mon Sep 17 00:00:00 2001 From: Jeff Daley Date: Tue, 17 Oct 2023 11:24:08 -0400 Subject: [PATCH] Improve form submission handling --- web/app/components/new/doc-form.hbs | 9 --------- web/app/components/new/project-form.hbs | 14 ++++++-------- web/app/components/new/project-form.ts | 8 ++++++-- .../acceptance/authenticated/new/project-test.ts | 2 +- 4 files changed, 13 insertions(+), 20 deletions(-) diff --git a/web/app/components/new/doc-form.hbs b/web/app/components/new/doc-form.hbs index 47ca20b38..dd3007c9c 100644 --- a/web/app/components/new/doc-form.hbs +++ b/web/app/components/new/doc-form.hbs @@ -82,15 +82,6 @@ - {{yield - (hash - Error=F.Error - HelperText=F.HelperText - Label=F.Label - isRequired=F.isRequired - isOptional=F.isOptional - ) - }} - - - + diff --git a/web/app/components/new/project-form.ts b/web/app/components/new/project-form.ts index 4b07e00fc..d8d4b4033 100644 --- a/web/app/components/new/project-form.ts +++ b/web/app/components/new/project-form.ts @@ -1,6 +1,6 @@ import { action } from "@ember/object"; import RouterService from "@ember/routing/router-service"; -import { next, schedule } from "@ember/runloop"; +import { next } from "@ember/runloop"; import { inject as service } from "@ember/service"; import Component from "@glimmer/component"; import { tracked } from "@glimmer/tracking"; @@ -24,7 +24,11 @@ export default class NewProjectFormComponent extends Component { return new Response(500, {}, {}); });