Skip to content

Commit

Permalink
🎨 fix #5362
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jul 9, 2022
1 parent 3a116b7 commit b4d6e79
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/src/config/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,12 @@ export const about = {
});
});
about.element.querySelector("#initKey").addEventListener("click", () => {
fetchPost("/api/repo/initRepoKey", {}, (response) => {
window.siyuan.config.repo.key = response.data.key;
importKeyElement.parentElement.classList.add("fn__none");
importKeyElement.parentElement.nextElementSibling.classList.remove("fn__none");
confirmDialog(window.siyuan.languages.genKey, "TODO", () => {
fetchPost("/api/repo/initRepoKey", {}, (response) => {
window.siyuan.config.repo.key = response.data.key;
importKeyElement.parentElement.classList.add("fn__none");
importKeyElement.parentElement.nextElementSibling.classList.remove("fn__none");
});
});
});
about.element.querySelector("#copyKey").addEventListener("click", () => {
Expand Down

0 comments on commit b4d6e79

Please sign in to comment.