This commit is contained in:
Nikolaos Laskaris 2017-11-01 13:59:57 +02:00
parent 70ee9456d9
commit 62a85a3173
1 changed files with 5 additions and 6 deletions

View File

@ -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 =>{