mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
b4d6e79b63
commit
086e2ffbd0
1 changed files with 6 additions and 4 deletions
|
|
@ -315,12 +315,14 @@ ${accountHTML}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
modelMainElement.querySelector("#initKey").addEventListener("click", () => {
|
modelMainElement.querySelector("#initKey").addEventListener("click", () => {
|
||||||
|
confirmDialog(window.siyuan.languages.genKey, "TODO", () => {
|
||||||
fetchPost("/api/repo/initRepoKey", {}, (response) => {
|
fetchPost("/api/repo/initRepoKey", {}, (response) => {
|
||||||
window.siyuan.config.repo.key = response.data.key;
|
window.siyuan.config.repo.key = response.data.key;
|
||||||
importKeyElement.parentElement.classList.add("fn__none");
|
importKeyElement.parentElement.classList.add("fn__none");
|
||||||
importKeyElement.parentElement.nextElementSibling.classList.remove("fn__none");
|
importKeyElement.parentElement.nextElementSibling.classList.remove("fn__none");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
modelMainElement.querySelector("#copyKey").addEventListener("click", () => {
|
modelMainElement.querySelector("#copyKey").addEventListener("click", () => {
|
||||||
showMessage(window.siyuan.languages.copied);
|
showMessage(window.siyuan.languages.copied);
|
||||||
writeText(window.siyuan.config.repo.key);
|
writeText(window.siyuan.config.repo.key);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue