feat: course creation resources

This commit is contained in:
Jannat Patel
2024-03-01 10:57:31 +05:30
parent 8f504a8043
commit 80e9984db0
6 changed files with 365 additions and 164 deletions

View File

@@ -1,6 +1,9 @@
<template>
<div class="text-base">
<div v-if="showHeader" class="flex justify-between mb-4">
<div
v-if="showHeader && outline.data?.length"
class="flex justify-between mb-4"
>
<div class="text-2xl font-semibold">
{{ __('Course Content') }}
</div>
@@ -8,7 +11,11 @@
{{ expandAll ? __("Collapse all chapters") : __("Expand all chapters") }}
</span> -->
</div>
<div :class="{ 'shadow rounded-md pt-2 px-2': showOutline }">
<div
:class="{
'shadow rounded-md pt-2 px-2': showOutline && outline.data?.length,
}"
>
<Disclosure
v-slot="{ open }"
v-for="(chapter, index) in outline.data"