mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
0cd68fe571
commit
e94a534b02
9 changed files with 111 additions and 114 deletions
|
|
@ -11,7 +11,7 @@ import {fullscreen} from "../protyle/breadcrumb/action";
|
|||
import {MenuItem} from "../menus/Menu";
|
||||
import {escapeHtml} from "../util/escape";
|
||||
/// #if !MOBILE
|
||||
import {newCardTab} from "./newCardTab";
|
||||
import {openFile} from "../editor/util";
|
||||
/// #endif
|
||||
import {getDisplayName, movePathTo} from "../util/pathName";
|
||||
|
||||
|
|
@ -203,10 +203,13 @@ export const bindCardEvent = (options: {
|
|||
/// #if !MOBILE
|
||||
const sticktabElement = hasClosestByAttribute(target, "data-type", "sticktab");
|
||||
if (sticktabElement) {
|
||||
newCardTab({
|
||||
cardType: filterElement.getAttribute("data-cardtype") as TCardType,
|
||||
id: filterElement.getAttribute("data-id"),
|
||||
title: options.title
|
||||
openFile({
|
||||
position: "right",
|
||||
customData:{
|
||||
cardType: filterElement.getAttribute("data-cardtype") as TCardType,
|
||||
id: filterElement.getAttribute("data-id"),
|
||||
title: options.title
|
||||
}
|
||||
});
|
||||
if (options.dialog) {
|
||||
options.dialog.destroy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue