mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
🚨
This commit is contained in:
parent
580a502714
commit
432634beea
6 changed files with 23 additions and 23 deletions
|
|
@ -162,7 +162,7 @@ const setSnippetPost = (dialog: Dialog, snippets: ISnippet[], removeIds: string[
|
|||
renderSnippet();
|
||||
dialog.destroy({cancel: "true"});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const setSnippet = (dialog: Dialog, oldSnippets: ISnippet[], removeIds: string[], confirm = false) => {
|
||||
const snippets: ISnippet[] = [];
|
||||
|
|
@ -180,10 +180,10 @@ const setSnippet = (dialog: Dialog, oldSnippets: ISnippet[], removeIds: string[]
|
|||
} else {
|
||||
if (confirm) {
|
||||
confirmDialog(window.siyuan.languages.save, window.siyuan.languages.snippetsTip, () => {
|
||||
setSnippetPost(dialog, snippets, removeIds)
|
||||
})
|
||||
setSnippetPost(dialog, snippets, removeIds);
|
||||
});
|
||||
} else {
|
||||
setSnippetPost(dialog, snippets, removeIds)
|
||||
setSnippetPost(dialog, snippets, removeIds);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue