()
| 937 | } |
| 938 | |
| 939 | function buildVersionsSection(): HTMLDivElement { |
| 940 | const display = mkNote(""); |
| 941 | display.style.maxHeight = "80px"; |
| 942 | display.style.overflowY = "auto"; |
| 943 | const list = mkBtn("List versions", "", () => listVersionsInto(display)); |
| 944 | const loadOldest = mkBtn("Load oldest", "", () => loadOldestVersion()); |
| 945 | return opSection("listVersions / loadFrom", opRow(list, loadOldest), display); |
| 946 | } |
| 947 | |
| 948 | async function listVersionsInto(display: HTMLElement) { |
| 949 | const { adapter } = await createFileAdapter(); |
nothing calls this directly
no test coverage detected