mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
parent
f4ef3f3a55
commit
9db94621e9
1 changed files with 5 additions and 4 deletions
|
|
@ -478,10 +478,11 @@ ${accountHTML}
|
|||
event.stopPropagation();
|
||||
break;
|
||||
} else if (target.getAttribute("data-type") === "remove") {
|
||||
const p = target.parentElement.getAttribute("data-path");
|
||||
fetchPost("/api/system/removeWorkspaceDir", {path: p}, () => {
|
||||
genWorkspace(workspaceDirElement);
|
||||
});
|
||||
confirmDialog(window.siyuan.languages.remove, window.siyuan.languages.removeWorkspaceTip, () => {
|
||||
fetchPost("/api/system/removeWorkspaceDir", {path: target.parentElement.getAttribute("data-path")}, () => {
|
||||
genWorkspace(workspaceDirElement);
|
||||
});
|
||||
})
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue