diff --git a/src/components/Form/fields/FieldOrcid.vue b/src/components/Form/fields/FieldOrcid.vue index 51429ac32..93a18afcf 100644 --- a/src/components/Form/fields/FieldOrcid.vue +++ b/src/components/Form/fields/FieldOrcid.vue @@ -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, }; diff --git a/src/components/ListPanel/contributors/ContributorsListPanel.vue b/src/components/ListPanel/contributors/ContributorsListPanel.vue index bf44c43e1..6ac8992b1 100644 --- a/src/components/ListPanel/contributors/ContributorsListPanel.vue +++ b/src/components/ListPanel/contributors/ContributorsListPanel.vue @@ -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]; }