Vanessa 2023-09-08 20:22:54 +08:00
parent bfd84dc9c7
commit da0e656ba6
7 changed files with 7 additions and 7 deletions

View file

@ -191,7 +191,7 @@ export const workspaceMenu = (app: App, rect: DOMRect) => {
event.preventDefault();
event.stopPropagation();
fetchPost("/api/system/removeWorkspaceDir", {path: item.path}, () => {
confirmDialog(window.siyuan.languages.deleteOpConfirm, window.siyuan.languages.removeWorkspacePhysically, () => {
confirmDialog(window.siyuan.languages.deleteOpConfirm, window.siyuan.languages.removeWorkspacePhysically.replace("${x}", item.path), () => {
fetchPost("/api/system/removeWorkspaceDirPhysically", {path: item.path});
});
});

View file

@ -321,7 +321,7 @@ export const initAbout = () => {
const removePath = target.parentElement.getAttribute("data-path");
fetchPost("/api/system/removeWorkspaceDir", {path: removePath}, () => {
genWorkspace(workspaceDirElement);
confirmDialog(window.siyuan.languages.deleteOpConfirm, window.siyuan.languages.removeWorkspacePhysically, () => {
confirmDialog(window.siyuan.languages.deleteOpConfirm, window.siyuan.languages.removeWorkspacePhysically.replace("${x}", removePath), () => {
fetchPost("/api/system/removeWorkspaceDirPhysically", {path: removePath});
});
});