Fixed public dataset DMP Link

This commit is contained in:
George Kalampokis 2020-03-17 12:44:37 +02:00
parent 5336ac935f
commit 4822274a98
2 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,7 @@
</div>
<div class="row">
<div class="col-auto about-item pl-0">
<a class="row storage" [routerLink]="['/plans/edit/' + dataset.dmpId]">
<a class="row storage" [routerLink]="getDmpLink()">
<mat-icon matTooltip="{{'DATASET-LISTING.TOOLTIP.DMP' | translate}}" class="col-auto gray-icon pr-0 pt-2">
storage
</mat-icon>

View File

@ -37,6 +37,10 @@ export class DatasetListingItemComponent implements OnInit {
return this.isPublic ? [`/datasets/publicEdit/${this.dataset.id}`] : [`/datasets/edit/${this.dataset.id}`];
}
getDmpLink(): string[] {
return this.isPublic ? [`/explore-plans/overview/${this.dataset.dmpId}`] : [`/plans/edit/${this.dataset.dmpId}`];
}
// grantClicked(dataset: DatasetListingModel) {
// this.router.navigate(['/grants/edit/' + dataset.grantId]);