This commit is contained in:
parent
70ee9456d9
commit
62a85a3173
|
@ -82,8 +82,9 @@ export class DmpComponent implements OnInit{
|
||||||
label: '',
|
label: '',
|
||||||
previous:'',
|
previous:'',
|
||||||
version:'',
|
version:'',
|
||||||
profileData:'',
|
profileData:''
|
||||||
profile:''
|
//,
|
||||||
|
//profile:{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -143,9 +144,9 @@ getDmps(){
|
||||||
newDMP(){
|
newDMP(){
|
||||||
console.log(this.dmp, this.dmp.projectsDropDownKey);
|
console.log(this.dmp, this.dmp.projectsDropDownKey);
|
||||||
|
|
||||||
debugger;
|
|
||||||
this.dmp.project = {"id" : this.dmp.project};
|
this.dmp.project = {"id" : this.dmp.project};
|
||||||
this.dmp["version"] = 1;
|
this.dmp["version"] = 1;
|
||||||
|
//this.dmp.profile = {};
|
||||||
|
|
||||||
this.serverService.createDmpForCurrentUser(this.dmp)
|
this.serverService.createDmpForCurrentUser(this.dmp)
|
||||||
.subscribe(
|
.subscribe(
|
||||||
|
@ -158,12 +159,10 @@ newDMP(){
|
||||||
|
|
||||||
updateDMP(){
|
updateDMP(){
|
||||||
console.log(this.dmp, this.dmp.projectsDropDownKey);
|
console.log(this.dmp, this.dmp.projectsDropDownKey);
|
||||||
//this.http.post('http://someurl', JSON.stringify(this.project))
|
|
||||||
|
|
||||||
this.dmp.project = {"id":this.dmp.project};
|
this.dmp.project = {"id":this.dmp.project};
|
||||||
|
|
||||||
|
|
||||||
debugger;
|
|
||||||
this.serverService.updateDmp(this.dmp)
|
this.serverService.updateDmp(this.dmp)
|
||||||
.subscribe(
|
.subscribe(
|
||||||
response =>{
|
response =>{
|
||||||
|
|
Loading…
Reference in New Issue