mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30: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.element.querySelector(".b3-button--cancel").addEventListener("click", () => {
|
||||||
dialog.destroy();
|
dialog.destroy();
|
||||||
});
|
});
|
||||||
dialog.element.querySelector("#initKeyByPW").addEventListener("click", () => {
|
|
||||||
const inputElement = dialog.element.querySelector(".b3-text-field") as HTMLInputElement
|
const inputElement = dialog.element.querySelector(".b3-text-field") as HTMLInputElement
|
||||||
|
dialog.element.querySelector("#initKeyByPW").addEventListener("click", () => {
|
||||||
if (!inputElement.value) {
|
if (!inputElement.value) {
|
||||||
showMessage(window.siyuan.languages._kernel[142]);
|
showMessage(window.siyuan.languages._kernel[142]);
|
||||||
return;
|
return;
|
||||||
|
|
@ -204,4 +204,5 @@ const setKey = () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
inputElement.focus();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue