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

Function updateLoadMoreVisibility

public/js/adminFolderAccess.js:687–695  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

685 }
686
687 function updateLoadMoreVisibility() {
688 const remaining = currentFiltered.length - renderIndex;
689 if (remaining > 0) {
690 if (!loadMoreBtn.isConnected) list.appendChild(loadMoreBtn);
691 loadMoreBtn.textContent = tf('load_more_folders', 'Load more folders') + ` (${remaining})`;
692 } else if (loadMoreBtn.isConnected) {
693 loadMoreBtn.remove();
694 }
695 }
696
697 function render(filter = "") {
698 renderIndex = 0;

Callers 1

appendChunkFunction · 0.85

Calls 1

tfFunction · 0.70

Tested by

no test coverage detected