mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-03 04:26:36 +08:00
fix nexusphp search and library labels
This commit is contained in:
@@ -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)}`
|
||||
}
|
||||
Reference in New Issue
Block a user