(folder, sourceId = '')
| 2304 | } |
| 2305 | |
| 2306 | function formatBreadcrumbText(folder, sourceId = '') { |
| 2307 | const path = (typeof folder === 'string' && folder.length) ? folder : 'root'; |
| 2308 | const rootLabel = getRootCrumbLabel(sourceId); |
| 2309 | if (path === 'root') return rootLabel; |
| 2310 | const parts = path.split('/').filter(Boolean); |
| 2311 | return [rootLabel, ...parts].join(' › '); |
| 2312 | } |
| 2313 | |
| 2314 | function resolvePaneFolderForTitle(paneKey, { fallbackToCurrent = false } = {}) { |
| 2315 | if (!paneKey) return ''; |
no test coverage detected