mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
926f1a1062
commit
9691c4218c
2 changed files with 6 additions and 3 deletions
|
|
@ -168,7 +168,7 @@ export const kernelError = () => {
|
|||
</div>`
|
||||
});
|
||||
dialog.element.id = "errorLog";
|
||||
dialog.element.setAttribute("data-key", Constants.DIALOG_ERRORKERNELFAULT);
|
||||
dialog.element.setAttribute("data-key", Constants.DIALOG_KERNELFAULT);
|
||||
const restartElement = dialog.element.querySelector(".b3-button");
|
||||
if (restartElement) {
|
||||
restartElement.addEventListener("click", () => {
|
||||
|
|
@ -258,7 +258,7 @@ export const transactionError = () => {
|
|||
</div>`,
|
||||
width: isMobile() ? "92vw" : "520px",
|
||||
});
|
||||
dialog.element.setAttribute("data-key", Constants.DIALOG_ERRORSTATEEXCEPTED);
|
||||
dialog.element.setAttribute("data-key", Constants.DIALOG_STATEEXCEPTED);
|
||||
const btnsElement = dialog.element.querySelectorAll(".b3-button");
|
||||
btnsElement[0].addEventListener("click", () => {
|
||||
/// #if MOBILE
|
||||
|
|
@ -357,7 +357,7 @@ export const bootSync = () => {
|
|||
<button class="b3-button b3-button--text">${window.siyuan.languages.syncNow}</button>
|
||||
</div>`
|
||||
});
|
||||
dialog.element.setAttribute("data-key", Constants.DIALOG_ERRORBOOTSYNCFAILED);
|
||||
dialog.element.setAttribute("data-key", Constants.DIALOG_BOOTSYNCFAILED);
|
||||
const btnsElement = dialog.element.querySelectorAll(".b3-button");
|
||||
btnsElement[0].addEventListener("click", () => {
|
||||
dialog.destroy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue