minor changes

This commit is contained in:
Nikolaos Laskaris 2017-10-27 12:24:04 +03:00
parent bfcb178c25
commit 115c298da2
2 changed files with 5 additions and 7 deletions

View File

@ -133,6 +133,10 @@ myFunction() {
SaveNewDmp(){
console.log(this.dmp, this.dmp.projectsDropDownKey); debugger;
//this.http.post('http://someurl', JSON.stringify(this.project))
this.dmp.project = {"id":this.dmp.project};
this.dmp["version"] = 1;
this.serverService.createDmpForProject(this.dmp)
.subscribe(
response =>{

View File

@ -104,15 +104,9 @@ export class ServerService {
return this.restBase.get("dmp/getofuser");
}
public createDmpForProject2(data:any, projectid: string){
//return this.restBase.post("dmp/createforproject", data);
return this.restBase.post('dmp/create', data,
{"id":projectid}
//new HttpParams().set('id', projectid)
)
}
public createDmpForProject(data:any){
debugger;
return this.restBase.post("dmp/create", data);
}