Skip to content

Commit

Permalink
🎨 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Feb 12, 2023
1 parent f4ef3f3 commit 9db9462
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/src/mobile/util/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9db9462

Please sign in to comment.