mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-07 23:11:09 +08:00
🚨
This commit is contained in:
parent
8f063e9f37
commit
1bff1ef7cb
@ -96,9 +96,9 @@ export const workspaceMenu = (app: App, rect: DOMRect) => {
|
|||||||
} else {
|
} else {
|
||||||
confirmDialog(window.siyuan.languages.new, `TODO: ${localPath.filePaths[0]}`, () => {
|
confirmDialog(window.siyuan.languages.new, `TODO: ${localPath.filePaths[0]}`, () => {
|
||||||
openWorkspace(localPath.filePaths[0]);
|
openWorkspace(localPath.filePaths[0]);
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
workspaceSubMenu.push({type: "separator"});
|
workspaceSubMenu.push({type: "separator"});
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
import {transaction} from "../../wysiwyg/transaction";
|
import {transaction} from "../../wysiwyg/transaction";
|
||||||
import {hasClosestBlock, hasClosestByClassName} from "../../util/hasClosest";
|
import {hasClosestBlock, hasClosestByClassName} from "../../util/hasClosest";
|
||||||
import {Menu} from "../../../plugin/Menu";
|
|
||||||
import {getColIconByType} from "./col";
|
|
||||||
import {fetchPost} from "../../../util/fetch";
|
|
||||||
|
|
||||||
export const popTextCell = (protyle: IProtyle, cellElement: HTMLElement) => {
|
export const popTextCell = (protyle: IProtyle, cellElement: HTMLElement) => {
|
||||||
const type = cellElement.parentElement.parentElement.firstElementChild.children[parseInt(cellElement.getAttribute("data-index")) + 1].getAttribute("data-dtype") as TAVCol;
|
const type = cellElement.parentElement.parentElement.firstElementChild.children[parseInt(cellElement.getAttribute("data-index")) + 1].getAttribute("data-dtype") as TAVCol;
|
||||||
|
@ -151,11 +151,11 @@ export const showColMenu = (protyle: IProtyle, blockElement: HTMLElement, cellEl
|
|||||||
label: window.siyuan.languages.filter,
|
label: window.siyuan.languages.filter,
|
||||||
click() {
|
click() {
|
||||||
fetchPost("/api/av/renderAttributeView", {id: avId}, (response) => {
|
fetchPost("/api/av/renderAttributeView", {id: avId}, (response) => {
|
||||||
const avData = response.data.av as IAV
|
const avData = response.data.av as IAV;
|
||||||
let filter: IAVFilter
|
let filter: IAVFilter;
|
||||||
avData.filters.find((item) => {
|
avData.filters.find((item) => {
|
||||||
if (item.column === colId) {
|
if (item.column === colId) {
|
||||||
filter = item
|
filter = item;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -168,7 +168,7 @@ export const showColMenu = (protyle: IProtyle, blockElement: HTMLElement, cellEl
|
|||||||
content: ""
|
content: ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
setFilter({
|
setFilter({
|
||||||
filter,
|
filter,
|
||||||
|
Loading…
Reference in New Issue
Block a user