From 25a2d82e82a6ab6b798518ad5263371d4527625b Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 16 Jul 2024 16:11:24 +0530 Subject: [PATCH 1/2] fix: misc issues --- .../src/components/Modals/EvaluationModal.vue | 11 +++++--- frontend/src/pages/CertifiedParticipants.vue | 23 ++++++++++----- frontend/src/utils/index.js | 13 +++++---- lms/lms/api.py | 3 +- .../lms_certificate/lms_certificate.json | 28 +++++++++---------- .../lms_certificate_evaluation.json | 4 +-- .../lms_certificate_request.py | 2 +- 7 files changed, 49 insertions(+), 35 deletions(-) diff --git a/frontend/src/components/Modals/EvaluationModal.vue b/frontend/src/components/Modals/EvaluationModal.vue index 825e38ed..b103a4f2 100644 --- a/frontend/src/components/Modals/EvaluationModal.vue +++ b/frontend/src/components/Modals/EvaluationModal.vue @@ -130,11 +130,14 @@ function submitEvaluation(close) { close() }, onError(err) { + let message = err.messages?.[0] || err + let unavailabilityMessage = message.includes('unavailable') + createToast({ - title: 'Error', - text: err.messages?.[0] || err, - icon: 'x', - iconClasses: 'bg-red-600 text-white rounded-md p-px', + title: unavailabilityMessage ? 'Evaluator is Unavailable' : 'Error', + text: message, + icon: unavailabilityMessage ? 'alert-circle' : 'x', + iconClasses: 'bg-yellow-600 text-white rounded-md p-px', position: 'top-center', timeout: 10, }) diff --git a/frontend/src/pages/CertifiedParticipants.vue b/frontend/src/pages/CertifiedParticipants.vue index 57881aca..583a1061 100644 --- a/frontend/src/pages/CertifiedParticipants.vue +++ b/frontend/src/pages/CertifiedParticipants.vue @@ -18,7 +18,10 @@
-
+
Date: Wed, 17 Jul 2024 11:29:14 +0530 Subject: [PATCH 2/2] fix: multiline tags --- frontend/src/components/CourseCard.vue | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/CourseCard.vue b/frontend/src/components/CourseCard.vue index daf76c4a..5dd1e3c6 100644 --- a/frontend/src/components/CourseCard.vue +++ b/frontend/src/components/CourseCard.vue @@ -2,28 +2,23 @@
-
- +
+ {{ __('Featured') }} {{ tag }}