mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 11:58:49 +01:00
🎨 Support downloading cloud data snapshots to local on demand https://github.com/siyuan-note/siyuan/issues/8057
This commit is contained in:
parent
f3de2e9292
commit
171fc40dea
1 changed files with 6 additions and 1 deletions
|
|
@ -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");
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue