From 622a2ff07221fb1f74f0be647addb72aed9681f0 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Fri, 30 May 2025 18:55:26 +0530 Subject: [PATCH] feat: display quiz when time is reached --- .../src/components/Modals/QuizInVideo.vue | 126 ++++++++++-------- frontend/src/components/Quiz.vue | 42 ++++-- frontend/src/components/Settings/Settings.vue | 2 +- frontend/src/components/VideoBlock.vue | 78 ++++++++++- frontend/src/utils/upload.js | 1 + .../doctype/course_lesson/course_lesson.py | 5 + 6 files changed, 184 insertions(+), 70 deletions(-) diff --git a/frontend/src/components/Modals/QuizInVideo.vue b/frontend/src/components/Modals/QuizInVideo.vue index 889a3c39..3d12ea15 100644 --- a/frontend/src/components/Modals/QuizInVideo.vue +++ b/frontend/src/components/Modals/QuizInVideo.vue @@ -3,23 +3,14 @@ v-model="show" :options="{ title: __('Add quiz to this video'), - size: 'xl', - actions: [ - { - label: __('Save'), - variant: 'solid', - onClick({ close }) { - addQuizToVideo(close) - }, - }, - ], + size: '2xl', }" >