mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
c9a909d033
commit
545fc07314
3 changed files with 21 additions and 0 deletions
|
|
@ -7,6 +7,15 @@ import {onGet} from "../protyle/util/onGet";
|
|||
import {hasClosestByClassName} from "../protyle/util/hasClosest";
|
||||
|
||||
export const openCard = () => {
|
||||
const exit = window.siyuan.dialogs.find(item => {
|
||||
if (item.element.getAttribute("data-key") === window.siyuan.config.keymap.general.riffCard.custom) {
|
||||
item.destroy();
|
||||
return true
|
||||
}
|
||||
})
|
||||
if (exit) {
|
||||
return;
|
||||
}
|
||||
let decksHTML = '<option value="">All</option>';
|
||||
fetchPost("/api/riff/getRiffDecks", {}, (response) => {
|
||||
response.data.forEach((deck: { id: string, name: string }) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue