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 @@ {{dataset?.description}} {{dataset?.created | date:'yyyy-MM-dd HH:mm:ss Z'}} {{dataset?.status | statusToString }} - + - + - + diff --git a/dmp-frontend/src/app/form/dynamic-form.component.html b/dmp-frontend/src/app/form/dynamic-form.component.html index c02b259de..55541df34 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.html +++ b/dmp-frontend/src/app/form/dynamic-form.component.html @@ -51,7 +51,7 @@
- +
@@ -121,7 +121,7 @@ diff --git a/dmp-frontend/src/app/form/dynamic-form.component.ts b/dmp-frontend/src/app/form/dynamic-form.component.ts index 5ff69c44e..8f9b3bd07 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.ts +++ b/dmp-frontend/src/app/form/dynamic-form.component.ts @@ -252,14 +252,14 @@ export class DynamicFormComponent implements OnInit { }); } - onSubmit() { + SaveForm() { let final = false; this.submitForm(false); this.payLoad = JSON.stringify(this.form.value); } - SaveFinalize(){ + SaveFinalizeForm(){ $("#confirmModal").modal("hide"); let final = true; this.submitForm(final);