From 62a85a317392f9909324d37b072e419e6bdaf962 Mon Sep 17 00:00:00 2001 From: Nikolaos Laskaris Date: Wed, 1 Nov 2017 13:59:57 +0200 Subject: [PATCH] - --- dmp-frontend/src/app/dmps/dmp.component.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/dmp-frontend/src/app/dmps/dmp.component.ts b/dmp-frontend/src/app/dmps/dmp.component.ts index 2e75c9efd..81333b63f 100644 --- a/dmp-frontend/src/app/dmps/dmp.component.ts +++ b/dmp-frontend/src/app/dmps/dmp.component.ts @@ -82,8 +82,9 @@ export class DmpComponent implements OnInit{ label: '', previous:'', version:'', - profileData:'', - profile:'' + profileData:'' + //, + //profile:{} } } @@ -143,9 +144,9 @@ getDmps(){ newDMP(){ console.log(this.dmp, this.dmp.projectsDropDownKey); - debugger; this.dmp.project = {"id" : this.dmp.project}; this.dmp["version"] = 1; + //this.dmp.profile = {}; this.serverService.createDmpForCurrentUser(this.dmp) .subscribe( @@ -158,12 +159,10 @@ newDMP(){ updateDMP(){ console.log(this.dmp, this.dmp.projectsDropDownKey); - //this.http.post('http://someurl', JSON.stringify(this.project)) this.dmp.project = {"id":this.dmp.project}; - - debugger; + this.serverService.updateDmp(this.dmp) .subscribe( response =>{