no message
This commit is contained in:
parent
52111af904
commit
21df6ccdd1
|
@ -84,7 +84,7 @@ export class DynamicFormComponent implements OnInit {
|
|||
|
||||
ngOnInit() {
|
||||
|
||||
this.serverService.getDmp(this.datasetId).subscribe(
|
||||
this.serverService.getSingleDataset(this.datasetId).subscribe(
|
||||
response => {
|
||||
this.dataModel = new JsonSerializer<DatasetModel>().fromJSONObject(response, DatasetModel);
|
||||
this.pages = this.getPages(this.dataModel);
|
||||
|
|
|
@ -47,10 +47,14 @@ export class ServerService {
|
|||
return this.restBase.get("dmp/listDMPLabelID");
|
||||
}
|
||||
|
||||
public getDmp(dmpid : string){
|
||||
return this.restBase.get("datasetprofile/get/"+dmpid);
|
||||
public getDmp(dmpid : string, eager? : boolean){
|
||||
if(eager)
|
||||
return this.restBase.get("dmps/"+dmpid, {"eager": true});
|
||||
else
|
||||
return this.restBase.get("dmps/"+dmpid, {"eager": true});
|
||||
}
|
||||
|
||||
|
||||
public getDmpHistory(dmpid: string){
|
||||
return this.restBase.get("dmp/history/"+dmpid);
|
||||
}
|
||||
|
@ -160,11 +164,10 @@ export class ServerService {
|
|||
public updateDataset(id:string,properties:any){
|
||||
return this.restBase.post("datasetprofile/save/"+id,properties);
|
||||
}
|
||||
/*
|
||||
logOut() {
|
||||
this.tokenService.logout();
|
||||
|
||||
public getSingleDataset(id){
|
||||
return this.restBase.get("datasetprofile/get/"+id);
|
||||
}
|
||||
*/
|
||||
|
||||
getThroughProxy(url : string, query: string){
|
||||
return this.restBase.proxy_get_wQuery(url, query);
|
||||
|
|
|
@ -30,7 +30,7 @@ export class DmpDetailedComponent implements OnInit {
|
|||
let sub = this.route.queryParams.subscribe(params => {
|
||||
|
||||
let dmpid = params.dmpid;
|
||||
this.serverService.getDmp(dmpid).subscribe(
|
||||
this.serverService.getDmp(dmpid,true).subscribe(
|
||||
response => {
|
||||
|
||||
this.dmp = response;
|
||||
|
|
Loading…
Reference in New Issue