Skip to content

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

:art: Simplify encrypted notebook creation button state https://github.com/siyuan-note/siyuan/issues/18034

Daniela74aa5bd44be
diff --git a/app/src/util/mount.ts b/app/src/util/mount.ts
index 2e570bf981..b9bb8ce9e3 100644
--- a/app/src/util/mount.ts
+++ b/app/src/util/mount.ts
@@ -173,11 +173,6 @@ export const newEncryptedNotebook = () => {
showMessage(window.siyuan.languages.masterPassword);
return false;
}
- // 创建含 KEK 派生 + 开加密 db,约耗时 1 秒
- const confirmBtn = btnsElement[1] as HTMLButtonElement;
- const originalText = confirmBtn.textContent;
- confirmBtn.setAttribute("disabled", "disabled");
- confirmBtn.textContent = window.siyuan.languages.loading;
const response = await fetchSyncPost("/api/notebook/createEncryptedNotebook", {
name: replaceFileName(name),
password
@@ -188,9 +183,6 @@ export const newEncryptedNotebook = () => {
notebook: response.data.notebook.id
});
dialog.destroy();
- } else {
- confirmBtn.removeAttribute("disabled");
- confirmBtn.textContent = originalText;
}
});
});