mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-11 19:28:50 +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
|
|
@ -6,6 +6,7 @@ import {openSetting} from "../config";
|
|||
/// #endif
|
||||
import {updateHotkeyTip} from "../protyle/util/compatibility";
|
||||
import {isMobile} from "../util/functions";
|
||||
import {Constants} from "../constants";
|
||||
|
||||
export const commandPanel = (app: App) => {
|
||||
const dialog = new Dialog({
|
||||
|
|
@ -22,6 +23,7 @@ export const commandPanel = (app: App) => {
|
|||
<div class="fn__hr"></div>
|
||||
</div>`
|
||||
});
|
||||
dialog.element.setAttribute("data-key", Constants.DIALOG_COMMANDPANEL);
|
||||
const listElement = dialog.element.querySelector("#commands");
|
||||
app.plugins.forEach(plugin => {
|
||||
plugin.commands.forEach(command => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue