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

Function bindViewOptionsButton

public/js/fileListView.js:6027–6036  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6025}
6026
6027function bindViewOptionsButton() {
6028 const btn = document.getElementById("viewOptionsBtn");
6029 if (!btn || btn.dataset.bound === "1") return;
6030 btn.dataset.bound = "1";
6031 btn.addEventListener("click", (ev) => {
6032 ev.preventDefault();
6033 ev.stopPropagation();
6034 showViewOptionsPopover(btn);
6035 });
6036}
6037
6038export function formatFolderName(folder, sourceId = '') {
6039 if (folder === "root") return getRootLabel(sourceId);

Callers 2

renderFileTableFunction · 0.85
renderGalleryViewFunction · 0.85

Calls 1

showViewOptionsPopoverFunction · 0.85

Tested by

no test coverage detected