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

Function refreshRecycleBinIndicator

public/js/trashRestoreDelete.js:441–451  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

439}
440
441export async function refreshRecycleBinIndicator() {
442 try {
443 const trashItems = await fetchTrash();
444 const hasItems = Array.isArray(trashItems) && trashItems.length > 0;
445 updateRecycleBinState(hasItems);
446 setHeaderIcon(hasItems);
447 } catch (e) {
448 updateRecycleBinState(false);
449 setHeaderIcon(false);
450 }
451}
452
453/**
454 * Automatically purges (permanently deletes) trash items older than 3 days.

Callers 1

setupTrashRestoreDeleteFunction · 0.85

Calls 3

fetchTrashFunction · 0.85
updateRecycleBinStateFunction · 0.85
setHeaderIconFunction · 0.85

Tested by

no test coverage detected