Fixed public dataset DMP Link
This commit is contained in:
parent
5336ac935f
commit
4822274a98
|
@ -34,7 +34,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-auto about-item pl-0">
|
<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">
|
<mat-icon matTooltip="{{'DATASET-LISTING.TOOLTIP.DMP' | translate}}" class="col-auto gray-icon pr-0 pt-2">
|
||||||
storage
|
storage
|
||||||
</mat-icon>
|
</mat-icon>
|
||||||
|
|
|
@ -37,6 +37,10 @@ export class DatasetListingItemComponent implements OnInit {
|
||||||
return this.isPublic ? [`/datasets/publicEdit/${this.dataset.id}`] : [`/datasets/edit/${this.dataset.id}`];
|
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) {
|
// grantClicked(dataset: DatasetListingModel) {
|
||||||
// this.router.navigate(['/grants/edit/' + dataset.grantId]);
|
// this.router.navigate(['/grants/edit/' + dataset.grantId]);
|
||||||
|
|
Loading…
Reference in New Issue