From 8e56e1f47ff75383e4188a4f96d89393ae1e4bac Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 22 Jul 2022 00:07:11 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/5478 --- app/src/config/about.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/config/about.ts b/app/src/config/about.ts index 4b7d5af24..c76ca0e7f 100644 --- a/app/src/config/about.ts +++ b/app/src/config/about.ts @@ -278,6 +278,10 @@ export const about = { initDialog.destroy(); }); btnsElement[1].addEventListener("click", () => { + if (!inputElement.value) { + showMessage(window.siyuan.languages._kernel[142]); + return; + } confirmDialog("🔑 " + window.siyuan.languages.genKeyByPW, window.siyuan.languages.initRepoKeyTip, () => { initDialog.destroy(); fetchPost("/api/repo/InitRepoKeyFromPassphrase", {pass: inputElement.value}, (response) => {