🎨 Support downloading cloud data snapshots to local on demand https://github.com/siyuan-note/siyuan/issues/8057

This commit is contained in:
Liang Ding 2023-04-21 20:51:28 +08:00
parent f3de2e9292
commit 171fc40dea
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -146,7 +146,12 @@ const renderRepo = (element: Element, currentPage: number) => {
renderRepoItem(response, element, "cloudTag");
});
} else if (currentPage === -3) {
fetchPost("/api/repo/getCloudRepoSnapshots", {marker: ""}, (response) => {
fetchPost("/api/repo/getCloudRepoSnapshots", {page: currentPage}, (response) => {
if (currentPage < response.data.pageCount) {
nextElement.removeAttribute("disabled");
} else {
nextElement.setAttribute("disabled", "disabled");
}
renderRepoItem(response, element, "cloud");
});
}