load different datasets
This commit is contained in:
parent
b4f596d639
commit
a2224acac5
|
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue