Add thai support in summary
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
Read
|
||||
</router-link>
|
||||
<button
|
||||
v-if="book.status === 'READY'"
|
||||
v-if="book.status === 'READY' && uploadEnabled"
|
||||
class="btn btn-secondary"
|
||||
:disabled="enrichRunning"
|
||||
@click="handleEnrich"
|
||||
@@ -73,6 +73,7 @@
|
||||
import { computed, onUnmounted, ref } from 'vue'
|
||||
import type { Book, EnrichmentProgress } from '@/stores/bookStore'
|
||||
import { useBookStore } from '@/stores/bookStore'
|
||||
import { env } from '@/env';
|
||||
|
||||
const props = defineProps<{
|
||||
book: Book
|
||||
@@ -90,6 +91,7 @@ const enrichFeedback = ref<string | null>(null)
|
||||
let pollTimer: ReturnType<typeof setInterval> | null = null
|
||||
|
||||
const enrichRunning = computed(() => enrichProgress.value?.status === 'RUNNING')
|
||||
const uploadEnabled = env('VITE_UPLOAD_ENABLED') !== 'false'
|
||||
|
||||
async function handleEnrich() {
|
||||
enrichFeedback.value = null
|
||||
|
||||
Reference in New Issue
Block a user