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

Function syncGlobalsFromPaneState

public/js/fileListView.js:1913–1925  ·  view source on GitHub ↗
(pane)

Source from the content-addressed store, hash-verified

1911}
1912
1913function syncGlobalsFromPaneState(pane) {
1914 const state = getPaneState(pane);
1915 window.currentFolder = state.currentFolder || "root";
1916 window.currentSubfolders = Array.isArray(state.currentSubfolders) ? state.currentSubfolders : [];
1917 window.currentSubfoldersSourceId = String(state.currentSubfoldersSourceId || '');
1918 window.currentSubfoldersFolder = String(state.currentSubfoldersFolder || '');
1919 window.currentPage = state.currentPage || 1;
1920 window.currentSearchTerm = state.currentSearchTerm || "";
1921 window.currentFolderCaps = state.currentFolderCaps || null;
1922 window.selectedFolderCaps = state.selectedFolderCaps || null;
1923 fileData = Array.isArray(state.fileData) ? state.fileData : [];
1924 window.currentFileListPaging = state.fileListPaging || null;
1925}
1926
1927function getFileListCursorPageSize() {
1928 const raw = parseInt(window.itemsPerPage || localStorage.getItem('itemsPerPage') || '50', 10);

Callers 1

setActivePaneFunction · 0.85

Calls 1

getPaneStateFunction · 0.85

Tested by

no test coverage detected