Skip to content

Commit

Permalink
WIP: Even even more invitation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ewhanson committed Dec 10, 2024
1 parent 433ad41 commit 13d984f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/pages/acceptInvitation/AcceptInvitationPageStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ export const useAcceptInvitationPageStore = defineComponentStore(
if (data.value.givenName) {
updateAcceptInvitationPayload('givenName', data.value.givenName); //if not check this override the multilingual structure
}
if (data.value.affiliation) {
updateAcceptInvitationPayload('affiliation', data.value.affiliation);
}
updateAcceptInvitationPayload('userCountry', data.value.country);
updateAcceptInvitationPayload('userOrcid', data.value.orcid);
updateAcceptInvitationPayload(
Expand All @@ -92,7 +95,6 @@ export const useAcceptInvitationPageStore = defineComponentStore(
'privacyStatement',
userId.value ? true : false,
);
updateAcceptInvitationPayload('affiliation', data.value.affiliation);
// add username to invitation payload for validations
updateAcceptInvitationPayload('username', data.value.username);
// add password to invitation payload for validations
Expand Down
7 changes: 4 additions & 3 deletions src/pages/acceptInvitation/AcceptInvitationVerifyOrcid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ const {t} = useLocalize();
* Go to the next step
*/
function skipOrcid() {
delete store.acceptInvitationPayload.userOrcid;
store.openStep(store.steps.value[1 + store.currentStepIndex].id);
// TODO: See how this should be handled given updated ORCID fields
// delete store.acceptInvitationPayload.userOrcid;
store.openStep(store.steps[1 + store.currentStepIndex].id);
}
function verifyOrcid() {
openOrcidOAuth();
store.openStep(store.steps.value[1 + store.currentStepIndex].id);
store.openStep(store.steps[1 + store.currentStepIndex].id);
}
function openOrcidOAuth() {
Expand Down

0 comments on commit 13d984f

Please sign in to comment.