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

Function refreshSourceBadges

public/js/fileListView.js:1746–1752  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1744}
1745
1746function refreshSourceBadges() {
1747 ensurePaneState();
1748 const active = normalizePaneKey(window.activePane);
1749 const other = active === 'secondary' ? 'primary' : 'secondary';
1750 setSourceBadge(document.getElementById('fileListTitle'), getPaneSourceId(active));
1751 setSourceBadge(document.getElementById('fileListTitleSecondary'), getPaneSourceId(other));
1752}
1753
1754try { window.__frRefreshSourceBadges = refreshSourceBadges; } catch (e) { /* ignore */ }
1755

Callers 5

setActivePaneFunction · 0.85
fileListView.jsFile · 0.85
navigateToSearchResultFunction · 0.85

Calls 4

ensurePaneStateFunction · 0.85
normalizePaneKeyFunction · 0.85
setSourceBadgeFunction · 0.85
getPaneSourceIdFunction · 0.85

Tested by

no test coverage detected