Skip to content

Commit

Permalink
Merge pull request #409 from taslangraham/i10389-main
Browse files Browse the repository at this point in the history
pkp/pkp-lib#10389 track author Orcid verification request state
  • Loading branch information
taslangraham authored Sep 20, 2024
2 parents f77229c + 86c0ccc commit d5aa1a4
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 @@ -388,6 +388,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 d5aa1a4

Please sign in to comment.