diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/CertificationTabs.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/CertificationTabs.vue new file mode 100644 index 000000000..5a9c4be4c --- /dev/null +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/CertificationTabs.vue @@ -0,0 +1,26 @@ + + + + In Progress ({{ applicationStore.inProgressCount }}) + Completed ({{ applicationStore.completedCount }}) + + + + + + diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/Certifications.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/Certifications.vue index 02104c6a4..38543da6e 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/Certifications.vue +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/Certifications.vue @@ -1,7 +1,5 @@ - Certifications - diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/Dashboard.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/Dashboard.vue index 1294a61f4..270ee2899 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/Dashboard.vue +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/Dashboard.vue @@ -18,7 +18,7 @@ - - - - Welcome Jane Doe - Complete and submit your application for certification in early childhood education. - - - Apply Now - - + + Welcome Jane Doe + Complete and submit your application for certification in early childhood education. + + Apply Now + - - - - - Not sure which certificate to apply for? Fill out a quick self-assessment to see your certification options. - Check Elegibility - + + Not sure which certificate to apply for? Fill out a quick self-assessment to see your certification options. + + Check Elegibility + - + @@ -81,7 +74,6 @@ export default defineComponent({ { name: "Profile", path: "/profile", icon: "mdi-account-edit" }, ], drawer: null as boolean | null | undefined, - selected: "my-certifications", }), methods: { formatPhoneNumber, diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/router.ts b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/router.ts index dc52c37cb..1235015b9 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/router.ts +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/router.ts @@ -17,7 +17,18 @@ const router = createRouter({ }, { path: "my-certifications", - component: () => import("./components/Certifications.vue"), + redirect: "/my-certifications/in-progress", + component: () => import("./components/CertificationTabs.vue"), + children: [ + { + path: "in-progress", + component: () => import("./components/Certifications.vue"), + }, + { + path: "completed", + component: () => import("./components/Certifications.vue"), + }, + ], }, { path: "messages", diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/store/application.ts b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/store/application.ts index 206245117..fe0d88b15 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/store/application.ts +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/store/application.ts @@ -11,6 +11,14 @@ export const useApplicationStore = defineStore("application", { state: (): ApplicationState => ({ applications: [], }), + getters: { + inProgressCount(state): number { + return state.applications?.length ?? 0; + }, + completedCount(): number { + return 0; + }, + }, actions: { async fetchApplications() { this.applications = await getApplications();
Complete and submit your application for certification in early childhood education.
- Not sure which certificate to apply for? Fill out a quick self-assessment to see your certification options. -
Not sure which certificate to apply for? Fill out a quick self-assessment to see your certification options.