This commit is contained in:
parent
f2e1a8f8b5
commit
1faa84fdfb
1 changed files with 5 additions and 1 deletions
|
@ -318,8 +318,12 @@ export const initAbout = () => {
|
|||
event.stopPropagation();
|
||||
break;
|
||||
} else if (target.getAttribute("data-type") === "remove") {
|
||||
fetchPost("/api/system/removeWorkspaceDir", {path: target.parentElement.getAttribute("data-path")}, () => {
|
||||
const removePath = target.parentElement.getAttribute("data-path");
|
||||
fetchPost("/api/system/removeWorkspaceDir", {path: removePath}, () => {
|
||||
genWorkspace(workspaceDirElement);
|
||||
confirmDialog(window.siyuan.languages.deleteOpConfirm, window.siyuan.languages.removeWorkspacePhysically, () => {
|
||||
fetchPost("/api/system/removeWorkspaceDirPhysically", {path: removePath});
|
||||
});
|
||||
});
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
|
Loading…
Add table
Reference in a new issue