Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Liang Ding171fc40dea87
diff --git a/app/src/history/history.ts b/app/src/history/history.ts
index 88a071ff6e..908650397c 100644
--- a/app/src/history/history.ts
+++ b/app/src/history/history.ts
@@ -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");
});
}