fix: misc issues

This commit is contained in:
Jannat Patel
2024-11-15 20:36:15 +05:30
parent 629c237349
commit 6a70ed18d8
4 changed files with 5 additions and 20 deletions

View File

@@ -16,12 +16,7 @@
>
<template #body-content>
<div class="space-y-4 text-base">
<FormControl
ref="chapterInput"
label="Title"
v-model="chapter.title"
:required="true"
/>
<FormControl label="Title" v-model="chapter.title" :required="true" />
<FormControl
:label="__('Is SCORM Package')"
v-model="chapter.is_scorm_package"
@@ -83,7 +78,6 @@ import { FileText, X } from 'lucide-vue-next'
const show = defineModel()
const outline = defineModel('outline')
const chapterInput = ref(null)
const props = defineProps({
course: {
@@ -209,14 +203,6 @@ watch(
}
)
/* watch(show, () => {
if (show.value) {
setTimeout(() => {
chapterInput.value.$el.querySelector('input').focus()
}, 100)
}
}) */
const validateFile = (file) => {
let extension = file.name.split('.').pop().toLowerCase()
if (extension !== 'zip') {