-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathauthenticated-identity.component.html
More file actions
46 lines (46 loc) · 1.77 KB
/
authenticated-identity.component.html
File metadata and controls
46 lines (46 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<div class="flex flex-column row-gap-4 border-1 border-round-lg grey-border-color p-3 md:p-4 xl:p-5">
<div class="flex flex-row justify-content-between">
<h2>
{{ 'settings.profileSettings.social.labels.authenticatedIdentity' | translate }}
</h2>
</div>
<div class="flex flex-column row-gap-4 w-full md:flex-row md:align-items-end md:column-gap-3">
<div class="w-full md:w-12">
@if (existingOrcid()) {
<div class="flex flex-row align-items-center gap-2">
<img ngSrc="assets/icons/colored/orcid.svg" width="16" height="16" alt="orcid" />
<a class="font-bold" [href]="orcidUrl()"> {{ orcidUrl() }} </a>
<p-button
icon="fas fa-times"
class="w-6 md:w-auto"
severity="danger"
variant="text"
[pTooltip]="'settings.profileSettings.social.disconnectOrcid' | translate"
[ariaLabel]="'settings.profileSettings.social.disconnectOrcid' | translate"
(onClick)="disconnectOrcid()"
>
</p-button>
</div>
} @else {
<img ngSrc="assets/images/integrations/orcid-logotype.png" width="130" height="40" alt="orcid" />
<p
class="mt-2 text-sm text-gray-600"
[innerHTML]="'settings.profileSettings.social.orcidDescription' | translate"
></p>
<b
class="mt-2 text-sm text-gray-600"
[innerHTML]="'settings.profileSettings.social.orcidWarning' | translate"
></b>
<div class="mt-2">
<p-button
class="w-6 md:w-auto"
[label]="'settings.profileSettings.social.connectOrcid' | translate"
severity="secondary"
(onClick)="connectOrcid()"
>
</p-button>
</div>
}
</div>
</div>
</div>