diff --git a/src/app/pages/projects/add-projects.component.ts b/src/app/pages/projects/add-projects.component.ts index 1030d89..5570e08 100644 --- a/src/app/pages/projects/add-projects.component.ts +++ b/src/app/pages/projects/add-projects.component.ts @@ -283,6 +283,7 @@ export class AddProjectsComponent implements OnInit { goTo(page: number = 1, refineQuery: boolean = true) { this.openaireSearchUtils.page = page; this.openaireSearchUtils.status = this.errorCodes.LOADING; + this.selectedIndexes = []; if(refineQuery) { this.openaireSearchUtils.refineStatus = this.errorCodes.LOADING; this.getFunders(); @@ -390,10 +391,9 @@ export class AddProjectsComponent implements OnInit { } public selectAll(){ if(this.selectedIndexes.length < this.openaireProjects.length) { - this.selectedIndexes = Array.from(Array(10).keys()); + this.selectedIndexes = Array.from(Array(this.openaireProjects.length).keys()); }else{ this.selectedIndexes = []; } - console.log(this.selectedIndexes) } } diff --git a/src/app/pages/projects/remove-projects.component.html b/src/app/pages/projects/remove-projects.component.html index 2c28e11..12df547 100644 --- a/src/app/pages/projects/remove-projects.component.html +++ b/src/app/pages/projects/remove-projects.component.html @@ -23,6 +23,18 @@
+ +
+ + +
+
@@ -109,6 +121,10 @@