🎨 桌面端支持同时打开多个工作空间 https://github.com/siyuan-note/siyuan/issues/4567

This commit is contained in:
Liang Ding 2023-01-05 19:21:07 +08:00
parent 29c8b67a7d
commit 8487627a15
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,5 @@
{
"removeWorkspaceTip": "The workspace cannot be recovered after being deleted, are you sure to delete it?",
"new": "New",
"share2LiandiConfirmTip": "Are you sure to share this document to Liandi?",
"share2Liandi": "Share to Liandi",

View file

@ -1,4 +1,5 @@
{
"removeWorkspaceTip": "El espacio de trabajo no se puede recuperar después de eliminarlo, ¿está seguro de eliminarlo?",
"new": "Nuevo",
"share2LiandiConfirmTip": "¿Estás seguro de compartir este documento con Liandi?",
"share2Liandi": "Compartir con Liandi",

View file

@ -1,4 +1,5 @@
{
"removeWorkspaceTip": "L'espace de travail ne peut pas être récupéré après avoir été supprimé, êtes-vous sûr de le supprimer ?",
"new": "Nouveau",
"share2LiandiConfirmTip": "Êtes-vous sûr de partager ce document avec Liandi ?",
"share2Liandi": "Partager avec Liandi",

View file

@ -1,4 +1,5 @@
{
"removeWorkspaceTip": "刪除工作空間後無法恢復,確定刪除嗎?",
"new": "新建",
"share2LiandiConfirmTip": "確定將該文檔分享到鏈滴嗎?",
"share2Liandi": "分享到鏈滴",

View file

@ -1,4 +1,5 @@
{
"removeWorkspaceTip": "删除工作空间后无法恢复,确定删除吗?",
"new": "新建",
"share2LiandiConfirmTip": "确定将该文档分享到链滴吗?",
"share2Liandi": "分享到链滴",

View file

@ -477,8 +477,9 @@ ${accountHTML}
event.stopPropagation();
break;
} else if (target.getAttribute("data-type") === "remove") {
confirmDialog("⚠️ " + window.siyuan.languages.remove, window.siyuan.languages.about8, () => {
fetchPost("/api/system/removeWorkspaceDir", {path: target.parentElement.getAttribute("data-path")});
const p = target.parentElement.getAttribute("data-path");
confirmDialog("⚠️ " + window.siyuan.languages.remove + " " + pathPosix().basename(p), window.siyuan.languages.removeWorkspaceTip, () => {
fetchPost("/api/system/removeWorkspaceDir", {path: p});
});
event.preventDefault();
event.stopPropagation();