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); this.onClick.emit(this.dataset);
} }
grantClicked(dataset: DatasetListingModel) {
// ----------- UNCOMMENT TO ADD AGAIN GRANTS -------- // ----------- UNCOMMENT TO ADD AGAIN GRANTS --------
// grantClicked(dataset: DatasetListingModel) {
// this.router.navigate(['/grants/edit/' + dataset.grantId]); // this.router.navigate(['/grants/edit/' + dataset.grantId]);
// } }
datasetClicked(dataset: DatasetListingModel) { datasetClicked(dataset: DatasetListingModel) {
this.router.navigate(['/plans/edit/' + dataset.dmpId]) this.router.navigate(['/plans/edit/' + dataset.dmpId])

View File

@ -85,10 +85,10 @@ export class DmpListingItemComponent implements OnInit {
this.onClick.emit(this.dmp); this.onClick.emit(this.dmp);
} }
grantClicked(grantId: String) {
// ----------- UNCOMMENT TO ADD AGAIN GRANTS -------- // ----------- UNCOMMENT TO ADD AGAIN GRANTS --------
// grantClicked(grantId: String) {
// this.router.navigate(['/grants/edit/' + grantId]); // this.router.navigate(['/grants/edit/' + grantId]);
// } }
datasetClicked(dmpId: string) { datasetClicked(dmpId: string) {
this.router.navigate(['/plans/edit/' + dmpId], { queryParams: { tab: "datasetDescriptions" } }); 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]); this.router.navigate(['/plans/clone/' + dmp.id]);
} }
grantClicked(grantId: String) {
// ----------- UNCOMMENT TO ADD AGAIN GRANTS -------- // ----------- UNCOMMENT TO ADD AGAIN GRANTS --------
// grantClicked(grantId: String) {
// this.router.navigate(['/grants/edit/' + grantId]); // this.router.navigate(['/grants/edit/' + grantId]);
// } }
datasetClicked(datasetId: String) { datasetClicked(datasetId: String) {
if (this.isPublicView) { if (this.isPublicView) {