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

Function getRootLabel

public/js/folderManager.js:258–262  ·  view source on GitHub ↗
(sourceId = '')

Source from the content-addressed store, hash-verified

256}
257
258function getRootLabel(sourceId = '') {
259 const id = sourceId || getActiveSourceId();
260 const name = getSourceNameById(id);
261 return name ? `(${name})` : '(Root)';
262}
263
264function getRootCrumbLabel(sourceId = '') {
265 const id = sourceId || getActiveSourceId();

Callers 2

loadMoveFolderTargetsFunction · 0.70
loadFolderTreeFunction · 0.70

Calls 2

getActiveSourceIdFunction · 0.70
getSourceNameByIdFunction · 0.70

Tested by

no test coverage detected