mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
This commit is contained in:
parent
1faa84fdfb
commit
f261888c55
1 changed files with 5 additions and 1 deletions
|
|
@ -190,7 +190,11 @@ export const workspaceMenu = (app: App, rect: DOMRect) => {
|
|||
if (hasClosestByClassName(event.target as Element, "b3-menu__action")) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
fetchPost("/api/system/removeWorkspaceDir", {path: item.path});
|
||||
fetchPost("/api/system/removeWorkspaceDir", {path: item.path}, () => {
|
||||
confirmDialog(window.siyuan.languages.deleteOpConfirm, window.siyuan.languages.removeWorkspacePhysically, () => {
|
||||
fetchPost("/api/system/removeWorkspaceDirPhysically", {path: item.path});
|
||||
});
|
||||
});
|
||||
return;
|
||||
}
|
||||
confirmDialog(window.siyuan.languages.confirm, `${pathPosix().basename(window.siyuan.config.system.workspaceDir)} -> ${pathPosix().basename(item.path)}?`, () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue