diff --git a/dmp-frontend/src/app/datasets/dataset.component.ts b/dmp-frontend/src/app/datasets/dataset.component.ts index adafd005f..de4630a8b 100644 --- a/dmp-frontend/src/app/datasets/dataset.component.ts +++ b/dmp-frontend/src/app/datasets/dataset.component.ts @@ -32,7 +32,7 @@ export class DatasetsComponent implements OnInit { //required by the table public filterQuery = ""; public rowsOnPage = 10; - //public sortBy = "email"; + public sortBy = "label"; public sortOrder = "asc"; //visibility rules for containers @@ -50,10 +50,10 @@ export class DatasetsComponent implements OnInit { @Input() datasetCount = 0; @Input() dmpIdforDatasets: string; @Input() dmpLabelforDatasets: string; + @Input() statusDropDown: DropdownField; dataset: any; saveAndDescribe:boolean; - - //@ViewChild(DataTable) projectsTable; + dataSetValue: boolean @Input() @@ -86,6 +86,9 @@ export class DatasetsComponent implements OnInit { this.datasetProfileDropDown = new DropdownField(); this.datasetProfileDropDown.options = []; this.saveAndDescribe = false; + this.statusDropDown = new DropdownField(); + this.statusDropDown.options =[]; + this.statusDropDown.options= [{key:'0', value:"active"},{key:'1', value:"inactive"}] } diff --git a/dmp-frontend/src/app/datasets/dataset.html b/dmp-frontend/src/app/datasets/dataset.html index fab487b42..f90a748bd 100644 --- a/dmp-frontend/src/app/datasets/dataset.html +++ b/dmp-frontend/src/app/datasets/dataset.html @@ -2,13 +2,19 @@ -
- - + + | ++ + |
|
@@ -38,14 +44,14 @@
|
-
+
|
---|---|---|---|---|
No elements | ||||
{{dataset.id}} | {{dataset?.label}} | @@ -56,13 +62,13 @@- + | ||
-
+
|