Skip to content

Commit

Permalink
pkp/pkp-lib#10319 update ORCID ui elements
Browse files Browse the repository at this point in the history
  • Loading branch information
taslangraham committed Sep 12, 2024
1 parent 6dedc2b commit f551cec
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions src/components/Form/fields/FieldOrcid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,28 @@
{{ t('common.delete') }}
</PkpButton>
<!-- When ORCID is absent -->
<PkpButton
v-if="!hasOrcid"
:disabled="verificationRequested || isButtonDisabled"
:icon="verificationRequested ? 'Complete' : null"
@click="openSendAuthorEmailDialog"
>
{{
verificationRequested
? t('orcid.field.verification.requested')
: t('orcid.field.verification.request')
}}
</PkpButton>
<div class="inline-flex">
<PkpButton
v-if="!hasOrcid"
:disabled="verificationRequested || isButtonDisabled"
:icon="verificationRequested ? 'Complete' : null"
:is-link="verificationRequested"
@click="openSendAuthorEmailDialog"
>
{{
verificationRequested
? t('orcid.field.verification.requested')
: t('orcid.field.verification.request')
}}
</PkpButton>
<PkpButton
v-if="!hasOrcid && verificationRequested"
:is-link="true"
@click="openSendAuthorEmailDialog"
>
{{ t('orcid.field.verification.resendRequest') }}
</PkpButton>
</div>
</div>
</div>
</template>
Expand Down

0 comments on commit f551cec

Please sign in to comment.