MCPcopy Create free account
hub / github.com/error311/FileRise / getRootLabel

Function getRootLabel

public/js/fileListView.js:1669–1673  ·  view source on GitHub ↗
(sourceId = '')

Source from the content-addressed store, hash-verified

1667}
1668
1669function getRootLabel(sourceId = '') {
1670 const id = sourceId || getGlobalActiveSourceId();
1671 const name = getSourceNameById(id);
1672 return name ? `(${name})` : '(Root)';
1673}
1674
1675function getRootCrumbLabel(sourceId = '') {
1676 const id = sourceId || getGlobalActiveSourceId();

Callers 2

updateDualPaneTargetHintFunction · 0.70
formatFolderNameFunction · 0.70

Calls 2

getGlobalActiveSourceIdFunction · 0.85
getSourceNameByIdFunction · 0.70

Tested by

no test coverage detected