This commit is contained in:
parent
9736ed09f5
commit
d5dfb2a732
1 changed files with 3 additions and 1 deletions
|
@ -403,7 +403,9 @@ export const repos = {
|
||||||
item.addEventListener("change", (event: InputEvent & { target: HTMLInputElement }) => {
|
item.addEventListener("change", (event: InputEvent & { target: HTMLInputElement }) => {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("file", event.target.files[0]);
|
formData.append("file", event.target.files[0]);
|
||||||
fetchPost(item.getAttribute("data-type") === "s3" ? "/api/sync/importSyncProviderS3" : "/api/sync/importSyncProviderWebDAV", formData);
|
fetchPost(item.getAttribute("data-type") === "s3" ? "/api/sync/importSyncProviderS3" : "/api/sync/importSyncProviderWebDAV", formData, () => {
|
||||||
|
renderProvider(window.siyuan.config.sync.provider);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
const syncConfigElement = repos.element.querySelector("#reposCloudSyncList");
|
const syncConfigElement = repos.element.querySelector("#reposCloudSyncList");
|
||||||
|
|
Loading…
Add table
Reference in a new issue