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

Function updateRecycleBinState

public/js/folderManager.js:1889–1895  ·  view source on GitHub ↗
(hasItems)

Source from the content-addressed store, hash-verified

1887}
1888
1889export function updateRecycleBinState(hasItems) {
1890 window.recycleBinHasItems = !!hasItems;
1891 const icon = document.querySelector(`#${RECYCLE_BIN_ID} .recycle-bin-icon`);
1892 if (icon) {
1893 icon.innerHTML = recycleBinSVG(!!hasItems);
1894 }
1895}
1896
1897function placeRecycleBinNode() {
1898 const ul = document.getElementById('rootChildren');

Callers 3

loadTrashItemsFunction · 0.85
fileActions.jsFile · 0.85

Calls 1

recycleBinSVGFunction · 0.85

Tested by

no test coverage detected