From d9a791223d5ec53f5ced747d6087cd04364afd7e Mon Sep 17 00:00:00 2001 From: Nikolaos Laskaris Date: Mon, 20 Nov 2017 11:10:17 +0200 Subject: [PATCH] -- --- dmp-frontend/src/app/dmps/dmp.component.ts | 4 ++-- dmp-frontend/src/app/services/rest-base.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dmp-frontend/src/app/dmps/dmp.component.ts b/dmp-frontend/src/app/dmps/dmp.component.ts index 904a66c79..943e27dbb 100644 --- a/dmp-frontend/src/app/dmps/dmp.component.ts +++ b/dmp-frontend/src/app/dmps/dmp.component.ts @@ -180,13 +180,13 @@ export class DmpComponent implements OnInit{ editDmp(item){ - this.dmp = item; + this.dmp = Object.assign({}, item); this.dmp.project = item.project.id; $("#newDmpModal").modal("show"); } editDmpVersion(item){ - this.dmp = item; + this.dmp = Object.assign({}, item); this.dmp.project = item.project.id; $("#newVersionDmpModal").modal("show"); } diff --git a/dmp-frontend/src/app/services/rest-base.ts b/dmp-frontend/src/app/services/rest-base.ts index 3a568e144..7f027a094 100644 --- a/dmp-frontend/src/app/services/rest-base.ts +++ b/dmp-frontend/src/app/services/rest-base.ts @@ -17,16 +17,17 @@ export class RestBase { + /* protocol: string = "http"; hostname: string ="localhost" port: number = 8080; webappname: string = "dmp-backend"; - /* protocol: string = "http"; hostname: string ="dl010.madgik.di.uoa.gr" port: number = 8080; webappname: string = "dmp-backend"; + */ @@ -34,7 +35,6 @@ export class RestBase { hostname: string = "dionysus.di.uoa.gr" ; port: number = 7070; webappname: string = "dmp-backend"; - */