Skip to content

A self-hosted media server and file management system

fix: flags are still used by config features that permanently exist

aminnausin54b1dcc23ce5
diff --git a/resources/js/components/config/server/ConfigServerFileTypes.vue b/resources/js/components/config/server/ConfigServerFileTypes.vue
index 177b6adb..c4a3cdc3 100644
--- a/resources/js/components/config/server/ConfigServerFileTypes.vue
+++ b/resources/js/components/config/server/ConfigServerFileTypes.vue
@@ -111,10 +111,7 @@ watch(serverConfig, setSavedExtensions, { immediate: true });
<template>
<SettingsCard :class="['flex-col gap-6 truncate', { 'animate-pulse': isLoading }]">
<template #content>
- <ConfigHeader :heading="'Supported File Types'" :dirty="form.dirty">
- Only selected file types will be scanned
- <span v-if="!FLAGS.CONFIG.USE_FILE_TYPES">(unsupported)</span>.
- </ConfigHeader>
+ <ConfigHeader :heading="'Supported File Types'" :dirty="form.dirty"> Only selected file types will be scanned. </ConfigHeader>
<div class="flex w-full flex-col gap-4 font-medium">
<div
diff --git a/resources/js/components/config/server/ConfigServerIndexing.vue b/resources/js/components/config/server/ConfigServerIndexing.vue
index bfbaa0c7..2599e811 100644
--- a/resources/js/components/config/server/ConfigServerIndexing.vue
+++ b/resources/js/components/config/server/ConfigServerIndexing.vue
@@ -76,11 +76,10 @@ watch(
<div class="divide-d space-y-4 divide-y *:pb-4 *:last:pb-0">
<ConfigToggleRow
id="uuid_embed"
- :label="`Embed UUID in files${FLAGS.CONFIG.USE_EMBED_UUID_TOGGLE ? '' : ' (unsupported)'}`"
+ :label="`Embed UUID in files`"
description="Links files to persistent metadata in the database. Increases index time and re-writes each file to disk."
v-model="form.fields.uuid_embed"
:errors="form.errors"
- :disabled="!FLAGS.CONFIG.USE_EMBED_UUID_TOGGLE"
/>
<ConfigToggleRow
@@ -90,6 +89,7 @@ watch(
v-model="form.fields.uuid_write_cache"
:disabled="!form.fields.uuid_embed || !FLAGS.CONFIG.USE_EMBED_CACHE_TOGGLE"
:errors="form.errors"
+ v-if="FLAGS.CONFIG.USE_EMBED_CACHE_TOGGLE"
/>
<ConfigToggleRow
@@ -99,6 +99,7 @@ watch(
v-model="form.fields.attachments_extract"
:errors="form.errors"
:disabled="!FLAGS.CONFIG.USE_EXTRACT_ATTACHMENTS_TOGGLE"
+ v-if="FLAGS.CONFIG.USE_EXTRACT_ATTACHMENTS_TOGGLE"
/>
<ConfigToggleRow
@@ -108,6 +109,7 @@ watch(
v-model="form.fields.thumbnails_generate"
:errors="form.errors"
:disabled="!FLAGS.CONFIG.USE_GENERATE_THUMBNAILS_TOGGLE"
+ v-if="FLAGS.CONFIG.USE_GENERATE_THUMBNAILS_TOGGLE"
/>
<ConfigToggleRow
diff --git a/resources/js/config/featureFlags.ts b/resources/js/config/featureFlags.ts
index 158c592b..fe26d276 100644
--- a/resources/js/config/featureFlags.ts
+++ b/resources/js/config/featureFlags.ts
@@ -21,7 +21,7 @@ export const FLAGS = {
USE_EXTRACT_ART_TOGGLE: true,
USE_CACHE_PATH: true,
USE_METADATA_PATH: false,
- USE_FILE_TYPES: false,
+ USE_FILE_TYPES: true,
USE_QUEUE_LIMITS: true,
},
};