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 b4d6e79 commit 086e2ff
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/src/mobile/util/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,12 @@ ${accountHTML}
});
});
modelMainElement.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");
});
});
});
modelMainElement.querySelector("#copyKey").addEventListener("click", () => {
Expand Down

0 comments on commit 086e2ff

Please sign in to comment.