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,8 +100,12 @@ export class DmpOverviewComponent extends BaseComponent implements OnInit {
} }
datasetClicked(datasetId: String) { datasetClicked(datasetId: String) {
if (this.isPublicView) {
this.router.navigate(['/datasets/publicEdit/' + datasetId]);
} else {
this.router.navigate(['/datasets/edit/' + datasetId]); this.router.navigate(['/datasets/edit/' + datasetId]);
} }
}
datasetsClicked(dmpId: String) { datasetsClicked(dmpId: String) {
if (!this.isFinalized) if (!this.isFinalized)