()
| 6025 | } |
| 6026 | |
| 6027 | function 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 | |
| 6038 | export function formatFolderName(folder, sourceId = '') { |
| 6039 | if (folder === "root") return getRootLabel(sourceId); |
no test coverage detected