diff --git a/dmp-frontend/src/app/datasets/dataset.component.css b/dmp-frontend/src/app/datasets/dataset.component.css index 7b60f54c0..2279ed4e1 100644 --- a/dmp-frontend/src/app/datasets/dataset.component.css +++ b/dmp-frontend/src/app/datasets/dataset.component.css @@ -36,4 +36,8 @@ tr.hover:hover > * { background-color:#337ab7; color:white; margin-top:15px; +} + +.cursor-hand{ + cursor: pointer; } \ No newline at end of file diff --git a/dmp-frontend/src/app/datasets/dataset.component.ts b/dmp-frontend/src/app/datasets/dataset.component.ts index 05423a030..957ed35cb 100644 --- a/dmp-frontend/src/app/datasets/dataset.component.ts +++ b/dmp-frontend/src/app/datasets/dataset.component.ts @@ -114,6 +114,7 @@ export class DatasetsComponent implements OnInit { label: '', reference: '', uri: '', + status: 0, properties: '', profile: { "id": '' }, dmp: { "id": '' } @@ -188,10 +189,13 @@ export class DatasetsComponent implements OnInit { } editRow(item, event) { + debugger; if (event.toElement.id == "editDataset"){ - this.dataset = item; + //this.dataset = item; this.dataset.label = item.label; this.dataset.uri = item.uri; + this.dataset.created = item.created; + this.dataset.status = item.status; //this.dataset.dmp = item.dmp; this.dataset.profile = item.profile==null ? null : item.profile.id; this.dataset.id = item.id; @@ -200,7 +204,6 @@ export class DatasetsComponent implements OnInit { else if(event.toElement.id == "describeDataset"){ this.describeDataset(item); } - return false; } diff --git a/dmp-frontend/src/app/datasets/dataset.html b/dmp-frontend/src/app/datasets/dataset.html index 572db357f..f42a87712 100644 --- a/dmp-frontend/src/app/datasets/dataset.html +++ b/dmp-frontend/src/app/datasets/dataset.html @@ -61,11 +61,11 @@