mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
Add error details to the abnormal status pop-up window (#17465)
* 🎨 Add error details to the abnormal status pop-up window * 🎨 Add error details to the abnormal status pop-up window
This commit is contained in:
@@ -378,14 +378,17 @@ export const exitSiYuan = async (setCurrentWorkspace = true) => {
|
||||
});
|
||||
};
|
||||
|
||||
export const transactionError = () => {
|
||||
export const transactionError = (msg?: string) => {
|
||||
if (document.getElementById("transactionError")) {
|
||||
return;
|
||||
}
|
||||
const dialog = new Dialog({
|
||||
disableClose: true,
|
||||
title: `${window.siyuan.languages.stateExcepted} v${Constants.SIYUAN_VERSION}`,
|
||||
content: `<div class="b3-dialog__content" id="transactionError">${window.siyuan.languages.rebuildIndexTip}</div>
|
||||
content: `<div class="b3-dialog__content" id="transactionError">
|
||||
${window.siyuan.languages.rebuildIndexTip}
|
||||
${msg ? `<br><div style="margin-top: 8px; max-height: 50vh; white-space: pre-wrap;">${escapeHtml(msg.trim())}</div>` : ""}
|
||||
</div>
|
||||
<div class="b3-dialog__action">
|
||||
<button class="b3-button b3-button--text">${window.siyuan.languages._kernel[97]}</button>
|
||||
<div class="fn__space"></div>
|
||||
|
||||
Reference in New Issue
Block a user