mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 00:20:12 +01:00
This commit is contained in:
parent
876970c1f2
commit
e9da420a28
1 changed files with 2 additions and 1 deletions
|
|
@ -192,8 +192,8 @@ const setKey = () => {
|
|||
dialog.element.querySelector(".b3-button--cancel").addEventListener("click", () => {
|
||||
dialog.destroy();
|
||||
});
|
||||
const inputElement = dialog.element.querySelector(".b3-text-field") as HTMLInputElement
|
||||
dialog.element.querySelector("#initKeyByPW").addEventListener("click", () => {
|
||||
const inputElement = dialog.element.querySelector(".b3-text-field") as HTMLInputElement
|
||||
if (!inputElement.value) {
|
||||
showMessage(window.siyuan.languages._kernel[142]);
|
||||
return;
|
||||
|
|
@ -204,4 +204,5 @@ const setKey = () => {
|
|||
});
|
||||
});
|
||||
});
|
||||
inputElement.focus();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue