diff --git a/dmp-frontend/src/app/ui/dashboard/dashboard.component.html b/dmp-frontend/src/app/ui/dashboard/dashboard.component.html index de1c123b3..7eec343f1 100644 --- a/dmp-frontend/src/app/ui/dashboard/dashboard.component.html +++ b/dmp-frontend/src/app/ui/dashboard/dashboard.component.html @@ -8,37 +8,27 @@
- +
- +
- +
- +
- +
- +
@@ -56,21 +46,16 @@
- +
- +
- +
- +
diff --git a/dmp-frontend/src/app/ui/dashboard/dashboard.component.ts b/dmp-frontend/src/app/ui/dashboard/dashboard.component.ts index c489236cf..7d7a429f4 100644 --- a/dmp-frontend/src/app/ui/dashboard/dashboard.component.ts +++ b/dmp-frontend/src/app/ui/dashboard/dashboard.component.ts @@ -162,7 +162,11 @@ export class DashboardComponent extends BaseComponent implements OnInit, IBreadC } dmpClicked(dmp: DmpListingModel) { - this.router.navigate(['/plans/publicEdit/' + dmp.id]); + if (!this.isAuthenticated()) { + this.router.navigate(['../explore-plans/overview', dmp.id], { relativeTo: this.route }); + } else { + this.router.navigate(['/plans/publicEdit/' + dmp.id]); + } } datasetClicked(dataset: DatasetListingModel) {