This commit is contained in:
parent
70ee9456d9
commit
62a85a3173
|
@ -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 =>{
|
||||
|
|
Loading…
Reference in New Issue