mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Support downloading cloud data snapshots to local on demand https://github.com/siyuan-note/siyuan/issues/8057
This commit is contained in:
@@ -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");
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user