mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-25 16:34:06 +01:00
This commit is contained in:
parent
bfd84dc9c7
commit
da0e656ba6
7 changed files with 7 additions and 7 deletions
|
|
@ -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});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue