diff --git a/dmp-frontend/src/app/dmps/dmp.component.ts b/dmp-frontend/src/app/dmps/dmp.component.ts index e40178d49..7491311ab 100644 --- a/dmp-frontend/src/app/dmps/dmp.component.ts +++ b/dmp-frontend/src/app/dmps/dmp.component.ts @@ -60,6 +60,7 @@ export class DmpComponent implements OnInit{ @Input() projectsDropDown:DropdownField; @Input() dataSetVisibe:boolean; @Input() statusDropDown: DropdownField; + @Input() isSelected:boolean; //@Input() projects: Project[]; dmpIdforDatasets: string; dmpLabelforDatasets:string; @@ -78,6 +79,7 @@ export class DmpComponent implements OnInit{ //this.projects = []; this.dmpTableVisible = false; this.dataSetVisibe = false; + this.isSelected=false; this.dmp = { id: null, @@ -196,6 +198,7 @@ selectDmp(item){ } editRow(item, event){ + this.isSelected = true; if (event.toElement.id == "editDMP"){ this.dmp.label = item.label; this.dmp.previous = item.previous; @@ -264,7 +267,13 @@ deleteRow(dmp){ } - +clickFilters(element){ +console.log(element); +if(element.textContent == "More filters") + element.textContent = "Less Filters"; +else +element.textContent = "More Filters"; +} } diff --git a/dmp-frontend/src/app/dmps/dmps.html b/dmp-frontend/src/app/dmps/dmps.html index a6e7e56c9..ce81a9687 100644 --- a/dmp-frontend/src/app/dmps/dmps.html +++ b/dmp-frontend/src/app/dmps/dmps.html @@ -14,10 +14,10 @@ - +
- - +