Change selected DOI from the first element to the selected one
This commit is contained in:
parent
34f8e4f96d
commit
6924d82c80
|
@ -126,11 +126,11 @@
|
||||||
<div *ngIf="dmp.dois && selectedModel" class="doi-panel">
|
<div *ngIf="dmp.dois && selectedModel" class="doi-panel">
|
||||||
<span class="ml-3 mr-3">{{selectedModel.doi}}</span>
|
<span class="ml-3 mr-3">{{selectedModel.doi}}</span>
|
||||||
<div class="d-flex justify-content-end ml-3">
|
<div class="d-flex justify-content-end ml-3">
|
||||||
<button (click)="copyDoi(dmp.dois[0].doi)" mat-mini-fab class="mr-2 d-flex justify-content-center align-items-center" matTooltip="{{'DMP-LISTING.ACTIONS.COPY' | translate}}" matTooltipPosition="above">
|
<button (click)="copyDoi(selectedModel.doi)" mat-mini-fab class="mr-2 d-flex justify-content-center align-items-center" matTooltip="{{'DMP-LISTING.ACTIONS.COPY' | translate}}" matTooltipPosition="above">
|
||||||
<mat-icon class="mat-mini-fab-icon">content_copy</mat-icon>
|
<mat-icon class="mat-mini-fab-icon">content_copy</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button *ngIf="depositRepos" mat-mini-fab class="mr-2 d-flex justify-content-center align-items-center" matTooltip="{{'GRANT-EDITOR.ACTIONS.VISIT-WEBSITE' | translate}}" matTooltipPosition="above">
|
<button *ngIf="depositRepos" mat-mini-fab class="mr-2 d-flex justify-content-center align-items-center" matTooltip="{{'GRANT-EDITOR.ACTIONS.VISIT-WEBSITE' | translate}}" matTooltipPosition="above">
|
||||||
<a [href]="createDoiLink(dmp.dois[0])" class="doi-link" target="_blank">
|
<a [href]="createDoiLink(selectedModel)" class="doi-link" target="_blank">
|
||||||
<mat-icon class="mat-mini-fab-icon">launch</mat-icon>
|
<mat-icon class="mat-mini-fab-icon">launch</mat-icon>
|
||||||
</a>
|
</a>
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in New Issue