Skip to content

Commit

Permalink
renaming from project-new to projects new to maintain consistency as …
Browse files Browse the repository at this point in the history
…needed
  • Loading branch information
horatiorosa committed Oct 2, 2024
1 parent 2296068 commit baccd56
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
19 changes: 9 additions & 10 deletions client/app/components/packages/projects/new.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<SaveableForm
@model={{@package}}
@validators={{array (hash) this.validations.SubmittableProjectNewForm }}
as |saveableProjectForm|
@validators={{array (hash) this.validations.SubmittableProjectsNewForm }}
as |saveableProjectsNewForm|
>
<div class="grid-x grid-margin-x">
<div class="cell large-8">
Expand All @@ -20,15 +20,15 @@
Planning will contact you with the next steps.
</p>
</section>
<Packages::Projects::ProjectInformation @form={{saveableProjectForm}} />
<Packages::Projects::ProjectsNewInformation @form={{saveableProjectsNewForm}} />
</div>

<div class="cell large-4 sticky-sidebar">
<saveableProjectForm.PageNav>
<saveableProjectForm.SubmitButton @isEnabled={{saveableProjectForm.isSubmittable}} data-test-save-button />
</saveableProjectForm.PageNav>
<saveableProjectForm.ConfirmationModal @action={{component saveableProjectForm.SubmitButton
isEnabled=saveableProjectForm.isSubmittable onClick=this.submitPackage class="no-margin" }}
<saveableProjectsNewForm.PageNav>
<saveableProjectsNewForm.SubmitButton @isEnabled={{saveableProjectsNewForm.isSubmittable}} data-test-save-button />
</saveableProjectsNewForm.PageNav>
<saveableProjectsNewForm.ConfirmationModal @action={{component saveableProjectsNewForm.SubmitButton
isEnabled=saveableProjectsNewForm.isSubmittable onClick=this.submitPackage class="no-margin" }}
@continueButtonTitle="Continue Editing" data-test-confirm-submit-button={{true}}>
<h6>Confirm New Project Submission</h6>
<p class="header-large medium-margin-top small-margin-bottom">
Expand All @@ -39,8 +39,7 @@
the
signature form) have been uploaded.
</p>
</saveableProjectForm.ConfirmationModal>
</saveableProjectsNewForm.ConfirmationModal>
</div>
</div>

</SaveableForm>
4 changes: 2 additions & 2 deletions client/app/components/packages/projects/new.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Component from '@glimmer/component';
import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import SubmittableProjectNewForm from '../../../validations/submittable-project-new-form';
import SubmittableProjectsNewForm from '../../../validations/submittable-projects-new-form';


export default class ProjectsNewFormComponent extends Component {
validations = {
SubmittableProjectNewForm,
SubmittableProjectsNewForm,
};

@service
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Model, { attr } from '@ember-data/model';

export default class ProjectNewModel extends Model {
export default class ProjectsNewModel extends Model {
@attr('string') dcpProjectname;

async submit() {
Expand Down
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('project-new');
return await this.store.createRecord('projects-new');
}
}

0 comments on commit baccd56

Please sign in to comment.