fix nexusphp search and library labels

This commit is contained in:
ShukeBta
2026-06-27 17:31:32 +08:00
parent a2be6a2127
commit 1ee10caa5a
5 changed files with 55 additions and 5 deletions
+8
View File
@@ -0,0 +1,8 @@
import { cloudLibraryLabel, cloudLibraryProvider, TYPE_LABEL } from './storageConfigModel'
export function libraryDisplayPath(path: string): string {
const provider = cloudLibraryProvider(path)
if (!provider) return path
const providerLabel = TYPE_LABEL[provider] || provider
return `${providerLabel} / ${cloudLibraryLabel(path)}`
}