Skip to content

Commit

Permalink
pkp/pkp-lib#Track author Orcid verification request state
Browse files Browse the repository at this point in the history
  • Loading branch information
taslangraham committed Sep 12, 2024
1 parent 7cd7278 commit e0ea5b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/Form/fields/FieldOrcid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,17 @@ export default {
required: true,
default: false,
},
/** Whether an email requesting users verify their ORCID has been sent or not */
orcidVerificationRequested: {
type: Boolean,
required: true,
},
},
data() {
return {
/** Internal value used for displaying ORCID in component. Takes initial value from `orcid` prop */
orcidValue: '',
/** Whether an email requesting users verify their ORCID has been sent or not */
verificationRequested: false,
verificationRequested: this.orcidVerificationRequested,
/** Whether request verification/delete ORCID button should be disabled or not */
isButtonDisabled: false,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ export default {
field.orcid = author['orcid'] ?? '';
field.authorId = author['id'];
field.isVerified = author['orcidIsVerified'] ?? false;
field.orcidVerificationRequested =
author['orcidVerificationRequested'];
} else if (Object.keys(author).includes(field.name)) {
field.value = author[field.name];
}
Expand Down

0 comments on commit e0ea5b4

Please sign in to comment.