load different datasets

This commit is contained in:
annampak 2017-11-01 17:54:14 +02:00
parent b4f596d639
commit a2224acac5
2 changed files with 3 additions and 14 deletions

View File

@ -159,18 +159,7 @@ export class DatasetsComponent implements OnInit {
getDatasetForDmpMethod(dmpid) {
this.serverService.getDatasetForDmp({ "id": dmpid }).subscribe(
response => {
console.log("response");
console.log(response);
this.datasets = [];
response.forEach(resp => {
let dt = new Dataset();
dt.id = resp.id;
dt.name = resp.label;
dt.uriDataset = resp.uri;
this.datasets.push(dt);
});
this.tableData = response;
}
);
}

View File

@ -1,6 +1,6 @@
<meta name="google-signin-client_id" content="524432312250-vhgidft856v8qftsc81kls4c74v87d8o.apps.googleusercontent.com">
<div [ngClass]="{true:'visible', false:'invisible'}[editorVisible]">
<!-- <div [ngClass]="{true:'visible', false:'invisible'}[editorVisible]"> -->
<table class="table table-striped" [mfData]="tableData | dmpTableFilter : filterQuery | dmpVersionFilter : versionFilter"
#mf="mfDataTable" [mfRowsOnPage]="rowsOnPage" [(mfSortBy)]="sortBy" [(mfSortOrder)]="sortOrder">
@ -75,7 +75,7 @@
</tr>
</tfoot>
</table>
</div>
<!-- </div> -->
<!--Modal for new and edit DMP-->
<div class="modal fade" id="newDmpModal" tabindex="-1" role="dialog" aria-labelledby="newDmpModalLabel" aria-hidden="true">