From 6e81c820e3b570f8773f2a1a988dace46b637b4e Mon Sep 17 00:00:00 2001 From: James Tessmer Date: Mon, 30 Sep 2024 14:51:24 -0700 Subject: [PATCH] Update casing for unknownDoi --- nmdc_server/schemas_submission.py | 2 +- web/src/definitions.ts | 2 +- .../SubmissionPortal/Components/SubmissionContextForm.vue | 6 +++--- web/src/views/SubmissionPortal/store/index.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nmdc_server/schemas_submission.py b/nmdc_server/schemas_submission.py index 4dcbcb34..5527bbae 100644 --- a/nmdc_server/schemas_submission.py +++ b/nmdc_server/schemas_submission.py @@ -70,7 +70,7 @@ class ContextForm(BaseModel): facilities: List[str] award: Optional[str] otherAward: str - unknownDOI: Optional[bool] + unknownDoi: Optional[bool] class MetadataSubmissionRecord(BaseModel): diff --git a/web/src/definitions.ts b/web/src/definitions.ts index dffa5652..3b07ada7 100644 --- a/web/src/definitions.ts +++ b/web/src/definitions.ts @@ -17,7 +17,7 @@ const Definitions = { studyNCBIBioProjectAccession: 'Provide the NCBI BioProject Accession Number associated with the listed NCBI BioProject Title.', metadataTypes: 'Check all -omics data types associated with samples collected for this study.', doi: 'DOI associated with the user project awarded. This is required when data is already generated and can be found here.', - unknowndoi: 'If selected you will not have to enter the required Award DOIs and you will be contacted by an NMDC team member after you have submitted your data.', + unknownDoi: 'If selected you will not have to enter the required Award DOIs and you will be contacted by an NMDC team member after you have submitted your data.', }; export default Definitions; diff --git a/web/src/views/SubmissionPortal/Components/SubmissionContextForm.vue b/web/src/views/SubmissionPortal/Components/SubmissionContextForm.vue index d9b0637e..b6418db4 100644 --- a/web/src/views/SubmissionPortal/Components/SubmissionContextForm.vue +++ b/web/src/views/SubmissionPortal/Components/SubmissionContextForm.vue @@ -45,7 +45,7 @@ export default defineComponent({ return true; }]; const doiRequiredRules = () => [(v: string) => { - const valid = !!v || (!contextForm.facilityGenerated && contextForm.dataGenerated) || (contextForm.unknownDOI && !contextForm.dataGenerated); + const valid = !!v || (!contextForm.facilityGenerated && contextForm.dataGenerated) || (contextForm.unknownDoi && !contextForm.dataGenerated); return valid || 'An award DOI is required if data was or is going to be generated by a DOE facility.'; }]; const revalidate = () => { @@ -323,10 +323,10 @@ export default defineComponent({ diff --git a/web/src/views/SubmissionPortal/store/index.ts b/web/src/views/SubmissionPortal/store/index.ts index 9d3d723a..47710b17 100644 --- a/web/src/views/SubmissionPortal/store/index.ts +++ b/web/src/views/SubmissionPortal/store/index.ts @@ -114,7 +114,7 @@ const contextFormDefault = { facilities: [] as string[], award: undefined as undefined | string, otherAward: '', - unknownDOI: undefined as undefined | boolean, + unknownDoi: undefined as undefined | boolean, }; const contextForm = reactive(clone(contextFormDefault)); const contextFormValid = ref(false);