From dd44b28b087ef6f5f8cd0bbbd6444589b156a969 Mon Sep 17 00:00:00 2001 From: hthabti Date: Tue, 1 Oct 2024 19:29:24 +0100 Subject: [PATCH] fix: see all button missing when grouping tasks by project in tasks tab EXO-72589 Meeds-io/meeds#2441 --- .../tasks-management/components/tasks/TasksDashboard.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webapps/src/main/webapp/vue-app/tasks-management/components/tasks/TasksDashboard.vue b/webapps/src/main/webapp/vue-app/tasks-management/components/tasks/TasksDashboard.vue index d133a6f06..5d22d4f5a 100644 --- a/webapps/src/main/webapp/vue-app/tasks-management/components/tasks/TasksDashboard.vue +++ b/webapps/src/main/webapp/vue-app/tasks-management/components/tasks/TasksDashboard.vue @@ -206,7 +206,7 @@ export default { }, computed: { canShowMore() { - return this.tasks.length >= this.limitToFetch && !this.filterActive; + return this.tasks.length >= this.limitToFetch; }, showPlaceholder() { return !this.tasks?.length && !this.loadingTasks && !this.filterActive; @@ -306,6 +306,7 @@ export default { this.labels = filterLabels.labels; if (this.primaryFilter === 'ALL') { this.taskQueryFilter = e; + this.taskQueryFilter.limit = this.limit; this.resetSearch(); this.searchTasks(this.taskQueryFilter); } else { @@ -341,6 +342,10 @@ export default { return this.$tasksService.filterTasksList(tasksFilter,this.groupBy,this.orderBy,this.labels).then(data => { if (data.projectName){ this.filterTaskQueryResult = data; + let numberOfTasksInProjects = 0; + this.tasks = this.filterTaskQueryResult.tasks; + this.tasks.forEach(projectTasks => numberOfTasksInProjects += projectTasks.length); + this.tasks.length = numberOfTasksInProjects; this.filterActive=true; } else { this.tasks = data && data.tasks || [];