mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-08 00:04:21 +01:00
🎨 Improve data repo key importing https://github.com/siyuan-note/siyuan/issues/12183
This commit is contained in:
parent
efb3c5dd36
commit
6215e37418
4 changed files with 17 additions and 12 deletions
|
|
@ -272,8 +272,8 @@ ${checkUpdateHTML}
|
|||
passwordDialog.destroy();
|
||||
});
|
||||
btnsElement[1].addEventListener("click", () => {
|
||||
fetchPost("/api/repo/importRepoKey", {key: textAreaElement.value}, () => {
|
||||
window.siyuan.config.repo.key = textAreaElement.value;
|
||||
fetchPost("/api/repo/importRepoKey", {key: textAreaElement.value}, (response) => {
|
||||
window.siyuan.config.repo.key = response.data.key;
|
||||
importKeyElement.parentElement.classList.add("fn__none");
|
||||
importKeyElement.parentElement.nextElementSibling.classList.remove("fn__none");
|
||||
passwordDialog.destroy();
|
||||
|
|
|
|||
|
|
@ -179,8 +179,8 @@ export const initAbout = () => {
|
|||
passwordDialog.destroy();
|
||||
});
|
||||
btnsElement[1].addEventListener("click", () => {
|
||||
fetchPost("/api/repo/importRepoKey", {key: textAreaElement.value}, () => {
|
||||
window.siyuan.config.repo.key = textAreaElement.value;
|
||||
fetchPost("/api/repo/importRepoKey", {key: textAreaElement.value}, (response) => {
|
||||
window.siyuan.config.repo.key = response.data.key;
|
||||
importKeyElement.parentElement.classList.add("fn__none");
|
||||
importKeyElement.parentElement.nextElementSibling.classList.remove("fn__none");
|
||||
passwordDialog.destroy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue