Merged PR 129: Added grupDocType
Added grupDocType
This commit is contained in:
@@ -73,15 +73,6 @@
|
||||
:options="availableAppOptions" optionLabel="name" required class="w-full"></Dropdown>
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-12 md:col-6 mb-4">
|
||||
<span class="p-float-label">
|
||||
<label for="ksDocType">KS Document Type</label>
|
||||
<i class="pi pi-info-circle text-violet-600 cursor-pointer"
|
||||
v-tooltip="'Specify the type of video'"></i>
|
||||
<Dropdown id="ksDocType" v-model="formData.ksDocType" :options="videoTypeOptions"
|
||||
optionLabel="name" :required class="w-full"></Dropdown>
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-12 md:col-6 mb-4">
|
||||
<span class="p-float-label">
|
||||
<label for="ksDocSource">KS Document Source</label>
|
||||
@@ -293,18 +284,23 @@ const onFileSelect = (event) => {
|
||||
};
|
||||
|
||||
onMounted(async () => {
|
||||
await updateVideos();
|
||||
await fetchVideos();
|
||||
await fetchGroupVideo();
|
||||
});
|
||||
|
||||
const updateVideos = async () => {
|
||||
const fetchVideos = async () => {
|
||||
ksVideoStore.fetchKsVideoByGroupId(route.params.groupId).then(() => {
|
||||
ksVideos.value = (ksVideoStore.ksVideo || []);
|
||||
//groupDocType.value = ksVideoGroupStore.ksVideoGroup?.ksDocType || ''
|
||||
console.log('ksVideos', ksVideos.value);
|
||||
//console.log('groupDocType', groupDocType.value);
|
||||
});
|
||||
};
|
||||
|
||||
const fetchGroupVideo = async () => {
|
||||
ksVideoGroupStore.fetchKsVideoGroupById(route.params.groupId).then(() => {
|
||||
groupDocType.value = (ksVideoGroupStore.getSelectedKsVideoGroup.type || []);
|
||||
});
|
||||
}
|
||||
|
||||
const onFileRemove = () => {
|
||||
selectedFile.value = null;
|
||||
toast.add({
|
||||
@@ -355,7 +351,7 @@ const submitForm = async () => {
|
||||
formDataToSend.value.append('ksProjectName', userPrefStore.selectedProject.internal_name);
|
||||
formDataToSend.value.append('ksApplicationName', formData.value.ksApplicationName.value);
|
||||
formDataToSend.value.append('ksVideoGroupId', route.params.groupId);
|
||||
formDataToSend.value.append('ksDocType', formData.value.ksDocType.value);
|
||||
formDataToSend.value.append('ksDocType', groupDocType.value);
|
||||
formDataToSend.value.append('ksDocSource', formData.value.ksDocSource);
|
||||
formDataToSend.value.append('numberOfChunkToEmbed', formData.value.numberOfChunkToEmbed);
|
||||
formDataToSend.value.append('chunkDurationInSeconds', formData.value.chunkDurationInSeconds);
|
||||
|
||||
Reference in New Issue
Block a user