diff --git a/frontend/src/components/Settings/LibraryManagement/Config/Excluded.vue b/frontend/src/components/Settings/LibraryManagement/Config/Excluded.vue index 728a4ddf3..e0086c7eb 100644 --- a/frontend/src/components/Settings/LibraryManagement/Config/Excluded.vue +++ b/frontend/src/components/Settings/LibraryManagement/Config/Excluded.vue @@ -112,8 +112,36 @@ function addExclusion(type?: string, icon?: string, title?: string) { } - - + + + + + {{ t("settings.exclusions-none") }} + + + + - - - - - - - {{ t("settings.exclusions-none") }} - - - - - - {{ t("common.add") }} - - - - - - - - {{ item.title }} - - - - - {{ item.value }} - - - - - - mdi-delete - - - - - + {{ t("common.add") }} + - + + + + + + {{ item.title }} + + + + + {{ item.value }} + + + + + + mdi-delete + + + + + diff --git a/frontend/src/components/Settings/LibraryManagement/Config/FolderMappings.vue b/frontend/src/components/Settings/LibraryManagement/Config/FolderMappings.vue index 31a94ea97..f80cdecd1 100644 --- a/frontend/src/components/Settings/LibraryManagement/Config/FolderMappings.vue +++ b/frontend/src/components/Settings/LibraryManagement/Config/FolderMappings.vue @@ -121,8 +121,29 @@ function deleteMapping(row: Row) { - - + + + - - - - - - - {{ t("common.add") }} - - - - - {{ item.fsSlug }} - - - - - - - - {{ item.slug }} - — - - - - - - {{ t("settings.folder-alias") }} - - - {{ t("settings.platform-variant") }} - - - {{ t("settings.auto-detected") }} - - — - - - - - - mdi-link-variant - - - mdi-family-tree - - - mdi-pencil - - - mdi-delete - - - - - - + {{ t("common.add") }} + - + + + {{ item.fsSlug }} + + + + + + + + {{ item.slug }} + — + + + + + + {{ t("settings.folder-alias") }} + + + {{ t("settings.platform-variant") }} + + + {{ t("settings.auto-detected") }} + + — + + + + + + mdi-link-variant + + + mdi-family-tree + + + mdi-pencil + + + mdi-delete + + + + + + diff --git a/frontend/src/types/emitter.d.ts b/frontend/src/types/emitter.d.ts index ae0c67087..6bbfd435d 100644 --- a/frontend/src/types/emitter.d.ts +++ b/frontend/src/types/emitter.d.ts @@ -40,7 +40,7 @@ export type Events = { slug: string; type: "alias" | "variant"; }; - showCreateExclusionDialog: { + showCreateExclusionDialog: null | { type: string; icon: string; title: string; diff --git a/frontend/src/views/Settings/LibraryManagement.vue b/frontend/src/views/Settings/LibraryManagement.vue index 7a39566ec..f2a45cfe6 100644 --- a/frontend/src/views/Settings/LibraryManagement.vue +++ b/frontend/src/views/Settings/LibraryManagement.vue @@ -25,13 +25,13 @@ const route = useRoute(); const router = useRouter(); // Valid tab values -const validTabs = ["config", "missing"] as const; +const validTabs = ["mapping", "excluded", "missing"] as const; // Initialize tab from query parameter or default to "config" -const tab = ref<"config" | "missing">( +const tab = ref<"mapping" | "excluded" | "missing">( validTabs.includes(route.query.tab as any) - ? (route.query.tab as "config" | "missing") - : "config", + ? (route.query.tab as "mapping" | "excluded" | "missing") + : "mapping", ); const configStore = storeConfig(); const { config } = storeToRefs(configStore); @@ -178,7 +178,7 @@ watch( () => route.query.tab, (newTab) => { if (newTab && validTabs.includes(newTab as any) && tab.value !== newTab) { - tab.value = newTab as "config" | "missing"; + tab.value = newTab as "mapping" | "excluded" | "missing"; } }, { immediate: true }, @@ -221,8 +221,11 @@ onUnmounted(() => { slider-color="secondary" selected-class="bg-toplayer" > - - {{ t("settings.config-tab") }} + + {{ t("settings.folder-mappings") }} + + + {{ t("settings.excluded") }} { - + + +