fix: misc issues
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
@click="openHelpDialog('upload')"
|
||||
>
|
||||
<span class="leading-5">
|
||||
{{ __('How to upload content from your system?') }}
|
||||
{{ __(contentMap['upload']) }}
|
||||
</span>
|
||||
<Info class="w-3 h-3 text-gray-700" />
|
||||
</div>
|
||||
@@ -44,7 +44,7 @@
|
||||
@click="openHelpDialog('youtube')"
|
||||
>
|
||||
<span>
|
||||
{{ __('How to add a YouTube Video?') }}
|
||||
{{ __(contentMap['youtube']) }}
|
||||
</span>
|
||||
<Info class="w-3 h-3 text-gray-700" />
|
||||
</div>
|
||||
@@ -72,7 +72,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ExplanationVideos v-model="showExplanation" :type="type" />
|
||||
<ExplanationVideos v-model="showExplanation" :title="title" :type="type" />
|
||||
</template>
|
||||
<script setup>
|
||||
import { Info } from 'lucide-vue-next'
|
||||
@@ -81,9 +81,16 @@ import ExplanationVideos from '@/components/Modals/ExplanationVideos.vue'
|
||||
|
||||
const showExplanation = ref(false)
|
||||
const type = ref(null)
|
||||
const title = ref(null)
|
||||
const contentMap = {
|
||||
quiz: 'How to add a Quiz?',
|
||||
upload: 'How to upload content from your system?',
|
||||
youtube: 'How to add a YouTube Video?',
|
||||
}
|
||||
|
||||
const openHelpDialog = (contentType) => {
|
||||
type.value = contentType
|
||||
title.value = contentMap[contentType]
|
||||
showExplanation.value = true
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -3,10 +3,11 @@
|
||||
v-model="show"
|
||||
:options="{
|
||||
size: '4xl',
|
||||
title: title,
|
||||
}"
|
||||
>
|
||||
<template #body>
|
||||
<div class="p-4">
|
||||
<template #body-content>
|
||||
<div>
|
||||
<VideoBlock :file="file" />
|
||||
</div>
|
||||
</template>
|
||||
@@ -24,8 +25,14 @@ const props = defineProps({
|
||||
type: [String, null],
|
||||
required: true,
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
|
||||
console.log(props.title)
|
||||
|
||||
const file = computed(() => {
|
||||
if (props.type == 'youtube') return '/assets/lms/frontend/Youtube.mp4'
|
||||
if (props.type == 'quiz') return '/assets/lms/frontend/Quiz.mp4'
|
||||
|
||||
@@ -332,10 +332,10 @@ const memberColumns = computed(() => {
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
label: 'Progress',
|
||||
label: 'Progress (%)',
|
||||
key: 'progress',
|
||||
width: 3,
|
||||
align: 'left',
|
||||
align: 'right',
|
||||
},
|
||||
]
|
||||
})
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</Button>
|
||||
</header>
|
||||
<div v-if="programs.data?.length" class="pt-5 px-5">
|
||||
<div v-for="program in programs.data" class="mb-20">
|
||||
<div v-for="program in programs.data" class="mb-10">
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="text-xl font-semibold">
|
||||
{{ program.name }}
|
||||
|
||||
@@ -60,6 +60,9 @@ export class Quiz {
|
||||
}
|
||||
|
||||
renderQuizModal() {
|
||||
if (this.readOnly) {
|
||||
return
|
||||
}
|
||||
const app = createApp(QuizPlugin, {
|
||||
onQuizAddition: (quiz) => {
|
||||
this.data.quiz = quiz
|
||||
|
||||
Reference in New Issue
Block a user