Fixes bug on not redirecting to correct url when clicking on Dataset Description on Published DMP Overview view.

This commit is contained in:
gkolokythas 2019-08-21 17:53:19 +03:00
parent 05c4039dbe
commit 416538532c
1 changed files with 5 additions and 1 deletions

View File

@ -100,7 +100,11 @@ export class DmpOverviewComponent extends BaseComponent implements OnInit {
}
datasetClicked(datasetId: String) {
this.router.navigate(['/datasets/edit/' + datasetId]);
if (this.isPublicView) {
this.router.navigate(['/datasets/publicEdit/' + datasetId]);
} else {
this.router.navigate(['/datasets/edit/' + datasetId]);
}
}
datasetsClicked(dmpId: String) {