mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-11 09:44:21 +01:00
Add attribute "data-key" for Dialog (#10138)
This commit is contained in:
parent
b669d1a19c
commit
291211bd00
29 changed files with 103 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ import {fetchPost} from "../util/fetch";
|
|||
import {Dialog} from "../dialog";
|
||||
import {highlightRender} from "../protyle/render/highlightRender";
|
||||
import {isMobile} from "../util/functions";
|
||||
import {Constants} from "../constants";
|
||||
|
||||
export const openChangelog = () => {
|
||||
fetchPost("/api/system/getChangelog", {}, (response) => {
|
||||
|
|
@ -14,6 +15,7 @@ export const openChangelog = () => {
|
|||
height: isMobile() ? "80vh" : "70vh",
|
||||
content: `<div style="overflow:auto;" class="b3-dialog__content b3-typography b3-typography--default">${response.data.html}</div>`
|
||||
});
|
||||
dialog.element.setAttribute("data-key", Constants.DIALOG_CHANGELOG);
|
||||
highlightRender(dialog.element);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue