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

Function syncPaneStateFromGlobals

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

Source from the content-addressed store, hash-verified

1895}
1896
1897function syncPaneStateFromGlobals(pane) {
1898 savePaneState(pane, {
1899 currentFolder: window.currentFolder || "root",
1900 sourceId: getGlobalActiveSourceId(),
1901 currentSubfolders: Array.isArray(window.currentSubfolders) ? window.currentSubfolders : [],
1902 currentSubfoldersSourceId: String(window.currentSubfoldersSourceId || ''),
1903 currentSubfoldersFolder: String(window.currentSubfoldersFolder || ''),
1904 currentPage: window.currentPage || 1,
1905 currentSearchTerm: window.currentSearchTerm || "",
1906 currentFolderCaps: window.currentFolderCaps || null,
1907 selectedFolderCaps: window.selectedFolderCaps || null,
1908 fileData: Array.isArray(fileData) ? fileData : [],
1909 fileListPaging: window.currentFileListPaging || null
1910 });
1911}
1912
1913function syncGlobalsFromPaneState(pane) {
1914 const state = getPaneState(pane);

Callers 1

setActivePaneFunction · 0.85

Calls 2

savePaneStateFunction · 0.85
getGlobalActiveSourceIdFunction · 0.85

Tested by

no test coverage detected