From f8c10d1807b78785d7b7b6f9425360acfaab45d1 Mon Sep 17 00:00:00 2001 From: KerollesFathy Date: Sat, 13 Dec 2025 14:22:08 +0000 Subject: [PATCH 1/4] fix: update certification categories to include label and value --- lms/lms/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lms/lms/api.py b/lms/lms/api.py index b7a405c4..ba24383c 100644 --- a/lms/lms/api.py +++ b/lms/lms/api.py @@ -449,8 +449,7 @@ def get_certification_categories(): for doc in docs: category = doc.course_title if doc.course_title else doc.batch_title if category not in categories: - categories.append(category) - + categories.append({"label": category, "value": category}) return categories From 4580ab018156cc250a6f3f8e1f6d408a8d5e95f6 Mon Sep 17 00:00:00 2001 From: KerollesFathy Date: Sat, 13 Dec 2025 15:18:37 +0000 Subject: [PATCH 2/4] fix: add watcher for currentCategory to update participants --- frontend/src/pages/CertifiedParticipants.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/CertifiedParticipants.vue b/frontend/src/pages/CertifiedParticipants.vue index 10230c3c..62bd2d35 100644 --- a/frontend/src/pages/CertifiedParticipants.vue +++ b/frontend/src/pages/CertifiedParticipants.vue @@ -111,7 +111,7 @@ import { Select, usePageMeta, } from 'frappe-ui' -import { computed, inject, onMounted, ref } from 'vue' +import { computed, inject, onMounted, ref, watch } from 'vue' import { GraduationCap } from 'lucide-vue-next' import { sessionStore } from '../stores/session' import EmptyState from '@/components/EmptyState.vue' @@ -220,6 +220,10 @@ usePageMeta(() => { icon: brand.favicon, } }) + +watch(currentCategory, (val) => { + updateParticipants() +})