From f73194daba1fe29760b1feb929b10f50ee62ab70 Mon Sep 17 00:00:00 2001 From: Farzad Date: Thu, 21 Mar 2024 11:59:32 -0700 Subject: [PATCH 1/3] ECER-966: Edit functionality added to the project. --- .../inputs/EceCertificationTypePreview.vue | 14 ++++++++++---- .../inputs/EceCharacterReferencePreview.vue | 14 ++++++++++---- .../inputs/EceContactInformationPreview.vue | 14 ++++++++++---- .../src/components/inputs/EceEducationPreview.vue | 14 ++++++++++---- .../inputs/EceWorkExperienceReferencePreview.vue | 13 ++++++++++--- .../src/store/wizard.ts | 6 ++++-- 6 files changed, 54 insertions(+), 21 deletions(-) diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceCertificationTypePreview.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceCertificationTypePreview.vue index 9b16dc2f4..cadbb019d 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceCertificationTypePreview.vue +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceCertificationTypePreview.vue @@ -6,7 +6,7 @@

Certification Selection

- + @@ -23,7 +23,7 @@ diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceCharacterReferencePreview.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceCharacterReferencePreview.vue index c548cada4..01345a69e 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceCharacterReferencePreview.vue +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceCharacterReferencePreview.vue @@ -6,7 +6,7 @@

Character Reference

- +
@@ -47,8 +47,9 @@ diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceContactInformationPreview.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceContactInformationPreview.vue index 22d7834e7..a1cc0cf43 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceContactInformationPreview.vue +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceContactInformationPreview.vue @@ -6,7 +6,7 @@

Contact Information

- +
@@ -103,12 +103,13 @@ diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceEducationPreview.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceEducationPreview.vue index 9838e5c0c..2623ce384 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceEducationPreview.vue +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceEducationPreview.vue @@ -6,7 +6,7 @@

Education

- +
@@ -79,8 +79,9 @@ diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceWorkExperienceReferencePreview.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceWorkExperienceReferencePreview.vue index e3f521a2d..2926211e4 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceWorkExperienceReferencePreview.vue +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceWorkExperienceReferencePreview.vue @@ -6,7 +6,7 @@

Work Experience References

- +
@@ -47,8 +47,9 @@ diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/store/wizard.ts b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/store/wizard.ts index cde9b18d0..e56b9df83 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/store/wizard.ts +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/store/wizard.ts @@ -1,9 +1,10 @@ import { defineStore } from "pinia"; + import { AddressType } from "@/components/inputs/EceAddresses.vue"; import type { Components } from "@/types/openapi"; import type { Step, Wizard } from "@/types/wizard"; -import { useUserStore } from "./user"; +import { useUserStore } from "./user"; export interface WizardData { [key: string]: any; } @@ -99,7 +100,7 @@ export const useWizardStore = defineStore("wizard", { setWizardData(wizardData: WizardData): void { this.wizardData = { ...this.wizardData, ...wizardData }; }, - setCurrentStep(stage: string): void { + setCurrentStep(stage: Components.Schemas.PortalStage): void { const item = Object.values(this.wizardConfig.steps).findIndex((step) => step.stage === stage) + 1; this.step = item; },