Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:lock: Add warning icon to encrypted export confirmation dialog #18034

Danielfe4e0115193b
diff --git a/app/src/protyle/export/exportMd.ts b/app/src/protyle/export/exportMd.ts
index d5813413ca..ab274bf943 100644
--- a/app/src/protyle/export/exportMd.ts
+++ b/app/src/protyle/export/exportMd.ts
@@ -167,7 +167,7 @@ export const exportMarkdownZip = async(options: IExportMdOptions) => {
}
};
if (encrypted) {
- confirmDialog(window.siyuan.languages.export, window.siyuan.languages.encryptedExportRiskTip, exportMarkdown);
+ confirmDialog("⚠️ " + window.siyuan.languages.export, window.siyuan.languages.encryptedExportRiskTip, exportMarkdown);
return;
}
exportMarkdown();
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts
index a687941bc2..c5384e74bf 100644
--- a/app/src/protyle/export/index.ts
+++ b/app/src/protyle/export/index.ts
@@ -63,7 +63,7 @@ export const saveExport = (option: IExportOptions) => {
};
fetchPost("/api/block/getBlockInfo", {id: option.id}, (response) => {
if (response.code === 0 && isEncryptedBox(response.data.box)) {
- confirmDialog(window.siyuan.languages.export, window.siyuan.languages.encryptedExportRiskTip, startExport);
+ confirmDialog("⚠️ " + window.siyuan.languages.export, window.siyuan.languages.encryptedExportRiskTip, startExport);
return;
}
startExport();
@@ -721,7 +721,7 @@ const getExportPath = (option: IExportOptions, removeAssets?: boolean, mergeSubd
return;
}
if (!confirmed && isEncryptedBox(response.data.box)) {
- confirmDialog(window.siyuan.languages.export, window.siyuan.languages.encryptedExportRiskTip, () => {
+ confirmDialog("⚠️ " + window.siyuan.languages.export, window.siyuan.languages.encryptedExportRiskTip, () => {
getExportPath(option, removeAssets, mergeSubdocs, true);
});
return;