From 86c0ccc55bd5d3c70183df06754118e7820e7a8d Mon Sep 17 00:00:00 2001 From: Taslan Graham Date: Thu, 12 Sep 2024 15:19:13 -0500 Subject: [PATCH] pkp/pkp-lib#10389 track author Orcid verification request state --- src/components/Form/fields/FieldOrcid.vue | 8 ++++++-- .../ListPanel/contributors/ContributorsListPanel.vue | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) 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]; }