diff --git a/src/views/settings/CatalogueView.vue b/src/views/settings/CatalogueView.vue index 2a8b087..bfc8ab7 100644 --- a/src/views/settings/CatalogueView.vue +++ b/src/views/settings/CatalogueView.vue @@ -8,38 +8,47 @@

- -
-
-

Données manquantes

-

- {{ status.exists ? 'Le catalogue est vide.' : 'Aucun catalogue trouvé.' }} - Téléchargez les données pour utiliser FanKarr. + +

+
+
+ +
@@ -51,11 +60,13 @@ import { useToast } from '@/composables/useToast' const { add: toast } = useToast() const updating = ref(false) +const loaded = ref(false) const status = ref({ exists: false, count: 0, empty: true }) onMounted(async () => { const res = await fetch('/api/torrents/status', { credentials: 'include' }) if (res.ok) status.value = await res.json() + loaded.value = true }) async function update() { diff --git a/src/views/settings/MediaManagementView.vue b/src/views/settings/MediaManagementView.vue index f989b6b..cd2e04f 100644 --- a/src/views/settings/MediaManagementView.vue +++ b/src/views/settings/MediaManagementView.vue @@ -6,136 +6,143 @@

Configuration des dossiers et du comportement d'import.

- -
- -
-
- - Docker -
- -

- ⚠ Chemin non configuré — cliquez pour sélectionner un dossier -

-

Dossier où sont déposés les fichiers téléchargés

-
- -
-
- - Docker -
- -

- ⚠ Chemin non configuré — cliquez pour sélectionner un dossier -

-

Dossier racine de votre médiathèque (Jellyfin, Kodi, Plex…)

-
- + +
+
- -
- ⚠ -
-

Chemins non configurés

+
@@ -159,6 +166,7 @@ const { add: toast } = useToast() const saving = ref(false) const scanning = ref(false) const isDocker = ref(false) +const loaded = ref(false) const scanResult = ref<{ found: number; added: number } | null>(null) const form = ref({ @@ -204,6 +212,7 @@ onMounted(async () => { if (settingsRes.ok) Object.assign(form.value, await settingsRes.json()) if (systemRes.ok) isDocker.value = (await systemRes.json()).isDocker if (infoRes.ok) picker.value.currentPath = (await infoRes.json()).defaultPath ?? '/' + loaded.value = true }) async function save() {