mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-15 00:21:00 +08:00
🚨
This commit is contained in:
parent
b6406e4263
commit
533f7d42ef
@ -370,7 +370,7 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
|
|||||||
if (!nodeElement) {
|
if (!nodeElement) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.enableExtend = false
|
this.enableExtend = false;
|
||||||
let id = "";
|
let id = "";
|
||||||
if (nodeElement) {
|
if (nodeElement) {
|
||||||
id = nodeElement.getAttribute("data-node-id");
|
id = nodeElement.getAttribute("data-node-id");
|
||||||
|
@ -172,10 +172,10 @@ export const syncGuide = (element?: Element) => {
|
|||||||
manualDialog.destroy();
|
manualDialog.destroy();
|
||||||
});
|
});
|
||||||
btnsElement[1].addEventListener("click", () => {
|
btnsElement[1].addEventListener("click", () => {
|
||||||
const uploadElement = manualDialog.element.querySelector("input[name=upload]:checked") as HTMLInputElement
|
const uploadElement = manualDialog.element.querySelector("input[name=upload]:checked") as HTMLInputElement;
|
||||||
if (!uploadElement) {
|
if (!uploadElement) {
|
||||||
showMessage(window.siyuan.languages.plsChoose)
|
showMessage(window.siyuan.languages.plsChoose);
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
fetchPost("/api/sync/performSync", {upload: uploadElement.value === "true"});
|
fetchPost("/api/sync/performSync", {upload: uploadElement.value === "true"});
|
||||||
manualDialog.destroy();
|
manualDialog.destroy();
|
||||||
|
Loading…
Reference in New Issue
Block a user