minor
This commit is contained in:
parent
115c298da2
commit
3c2c9ea5bd
|
@ -137,7 +137,7 @@ SaveNewDmp(){
|
||||||
this.dmp.project = {"id":this.dmp.project};
|
this.dmp.project = {"id":this.dmp.project};
|
||||||
this.dmp["version"] = 1;
|
this.dmp["version"] = 1;
|
||||||
|
|
||||||
this.serverService.createDmpForProject(this.dmp)
|
this.serverService.createDmpForCurrentUser(this.dmp)
|
||||||
.subscribe(
|
.subscribe(
|
||||||
response =>{
|
response =>{
|
||||||
console.log("response");
|
console.log("response");
|
||||||
|
|
|
@ -15,15 +15,17 @@ export class RestBase {
|
||||||
this.xml2jsonOBJ = new X2JS();
|
this.xml2jsonOBJ = new X2JS();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
protocol: string = "http";
|
protocol: string = "http";
|
||||||
hostname: string ="dl010.madgik.di.uoa.gr" ;//"localhost";//"dl010.madgik.di.uoa.gr";//
|
hostname: string ="dl010.madgik.di.uoa.gr" ;//"localhost";//"dl010.madgik.di.uoa.gr";//
|
||||||
port: number = 8080;//8080;//
|
port: number = 8080;//8080;//
|
||||||
webappname: string = "dmp-backend";//"dmp-backend-new";//
|
webappname: string = "dmp-backend";//"dmp-backend-new";//
|
||||||
|
*/
|
||||||
|
|
||||||
// protocol: string = "http";
|
protocol: string = "http";
|
||||||
// hostname: string ="dionysus.di.uoa.gr" ;
|
hostname: string = "dionysus.di.uoa.gr" ;
|
||||||
// port: number = 7070;
|
port: number = 7070;
|
||||||
// webappname: string = "dmp-backend";//"dmp-backend-new";//
|
webappname: string = "dmp-backend";
|
||||||
|
|
||||||
|
|
||||||
proxyPath : string = this.protocol+"://"+this.hostname+":"+this.port+"/"+this.webappname+"/proxy/";
|
proxyPath : string = this.protocol+"://"+this.hostname+":"+this.port+"/"+this.webappname+"/proxy/";
|
||||||
|
|
|
@ -105,9 +105,9 @@ export class ServerService {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public createDmpForProject(data:any){
|
public createDmpForCurrentUser(data:any){
|
||||||
debugger;
|
debugger;
|
||||||
return this.restBase.post("dmp/create", data);
|
return this.restBase.post("dmp/createofuser", data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue