Fixes bug on removing /grants

This commit is contained in:
apapachristou 2019-10-04 11:53:30 +03:00
parent 2a1eeb92d3
commit 5fab3fb9d1
3 changed files with 12 additions and 12 deletions

View File

@ -27,10 +27,10 @@ export class DatasetListingItemComponent implements OnInit {
this.onClick.emit(this.dataset);
}
// ----------- UNCOMMENT TO ADD AGAIN GRANTS --------
// grantClicked(dataset: DatasetListingModel) {
// this.router.navigate(['/grants/edit/' + dataset.grantId]);
// }
grantClicked(dataset: DatasetListingModel) {
// ----------- UNCOMMENT TO ADD AGAIN GRANTS --------
// this.router.navigate(['/grants/edit/' + dataset.grantId]);
}
datasetClicked(dataset: DatasetListingModel) {
this.router.navigate(['/plans/edit/' + dataset.dmpId])

View File

@ -85,10 +85,10 @@ export class DmpListingItemComponent implements OnInit {
this.onClick.emit(this.dmp);
}
// ----------- UNCOMMENT TO ADD AGAIN GRANTS --------
// grantClicked(grantId: String) {
// this.router.navigate(['/grants/edit/' + grantId]);
// }
grantClicked(grantId: String) {
// ----------- UNCOMMENT TO ADD AGAIN GRANTS --------
// this.router.navigate(['/grants/edit/' + grantId]);
}
datasetClicked(dmpId: string) {
this.router.navigate(['/plans/edit/' + dmpId], { queryParams: { tab: "datasetDescriptions" } });

View File

@ -93,10 +93,10 @@ export class DmpOverviewComponent extends BaseComponent implements OnInit {
this.router.navigate(['/plans/clone/' + dmp.id]);
}
// ----------- UNCOMMENT TO ADD AGAIN GRANTS --------
// grantClicked(grantId: String) {
// this.router.navigate(['/grants/edit/' + grantId]);
// }
grantClicked(grantId: String) {
// ----------- UNCOMMENT TO ADD AGAIN GRANTS --------
// this.router.navigate(['/grants/edit/' + grantId]);
}
datasetClicked(datasetId: String) {
if (this.isPublicView) {