Skip to content

Commit

Permalink
pkp/pkp-lib#10389 track author Orcid verification request state
Browse files Browse the repository at this point in the history
  • Loading branch information
taslangraham committed Sep 20, 2024
1 parent f77229c commit 86c0ccc
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 86c0ccc

Please sign in to comment.