diff --git a/src/JobsJobsJobs/App/src/router/index.ts b/src/JobsJobsJobs/App/src/router/index.ts index 87dc0c3..11674aa 100644 --- a/src/JobsJobsJobs/App/src/router/index.ts +++ b/src/JobsJobsJobs/App/src/router/index.ts @@ -14,6 +14,10 @@ const routes: Array = [ { path: '/citizen/dashboard', component: () => import(/* webpackChunkName: "logon" */ '../views/citizen/Dashboard.vue') + }, + { + path: '/citizen/profile', + component: () => import(/* webpackChurchName: "profedit" */ '../views/citizen/EditProfile.vue') } ] diff --git a/src/JobsJobsJobs/App/src/views/citizen/Dashboard.vue b/src/JobsJobsJobs/App/src/views/citizen/Dashboard.vue index 3d89aa8..992188a 100644 --- a/src/JobsJobsJobs/App/src/views/citizen/Dashboard.vue +++ b/src/JobsJobsJobs/App/src/views/citizen/Dashboard.vue @@ -45,7 +45,7 @@ export default defineComponent({ const user = store.state.user as LogOnSuccess /** Error messages from data retrieval */ - const errorMessage = ref('') + const errorMessages : string[] = [] /** The user's profile */ const profile : Ref = ref(undefined) @@ -56,13 +56,13 @@ export default defineComponent({ const retrieveData = async () => { const profileResult = await api.profile.retreive(undefined, user) if (typeof profileResult === 'string') { - errorMessage.value = profileResult + errorMessages.push(profileResult) } else if (typeof profileResult !== 'undefined') { profile.value = profileResult } const count = await api.profile.count(user) if (typeof count === 'string') { - errorMessage.value = `${errorMessage.value}\n${count}` + errorMessages.push(count) } else { profileCount.value = count } @@ -72,7 +72,7 @@ export default defineComponent({ return { user, - errorMessage, + errorMessages, profile, profileCount } diff --git a/src/JobsJobsJobs/App/src/views/citizen/EditProfile.vue b/src/JobsJobsJobs/App/src/views/citizen/EditProfile.vue new file mode 100644 index 0000000..32df9d1 --- /dev/null +++ b/src/JobsJobsJobs/App/src/views/citizen/EditProfile.vue @@ -0,0 +1,176 @@ + + +