From bef04d26dedadca708c476f19ddae7c2105faab5 Mon Sep 17 00:00:00 2001 From: Bruce Schultz Date: Fri, 6 Sep 2024 11:43:50 +0200 Subject: [PATCH] feat(filter): improve categorical table filters by making them reactive --- components/analysis/AnalysesTable.vue | 44 ++++++++++++++++----------- components/projects/ProposalTable.vue | 30 +++++++++--------- 2 files changed, 42 insertions(+), 32 deletions(-) diff --git a/components/analysis/AnalysesTable.vue b/components/analysis/AnalysesTable.vue index a76b384..b00a4a1 100644 --- a/components/analysis/AnalysesTable.vue +++ b/components/analysis/AnalysesTable.vue @@ -44,7 +44,7 @@ function onToggleRowExpansion(rowIds) { // Table filters const defaultFilters = { global: { value: null, matchMode: FilterMatchMode.CONTAINS }, - approval_status: { value: null, matchMode: FilterMatchMode.IN }, + approval_status: { value: null, matchMode: FilterMatchMode.EQUALS }, "analysis.build_status": { value: null, matchMode: FilterMatchMode.IN }, run_status: { value: null, matchMode: FilterMatchMode.IN }, // Below are more examples @@ -134,8 +134,11 @@ function updateRunStatus(analysisNodeId: string, newStatus: string) { - -