mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
d1b2309e4a
commit
8436c07a1a
3 changed files with 10 additions and 11 deletions
|
@ -55,11 +55,7 @@ ${fieldType === "block" ? ' data-detached="true"' : ""}>${renderCell(genCellValu
|
|||
groupID: options.groupID,
|
||||
previousID: options.previousId,
|
||||
}, (response) => {
|
||||
if (!response.data.values) {
|
||||
if (!response.data.ignore) {
|
||||
showMessage(window.siyuan.languages.insertRowTip);
|
||||
}
|
||||
} else {
|
||||
if (response.data.values) {
|
||||
let popCellElement: HTMLElement;
|
||||
const updateIds = Object.keys(response.data.values);
|
||||
options.blockElement.querySelectorAll('[data-type="ghost"]').forEach(rowItem => {
|
||||
|
|
|
@ -18,6 +18,7 @@ import {getFieldsByData, getViewIcon} from "./view";
|
|||
import {openMenuPanel} from "./openMenuPanel";
|
||||
import {getPageSize} from "./groups";
|
||||
import {clearSelect} from "../../util/clearSelect";
|
||||
import {showMessage} from "../../../dialog/message";
|
||||
|
||||
interface ITableOptions {
|
||||
protyle: IProtyle,
|
||||
|
@ -739,6 +740,12 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
|
|||
popTextCell(protyle, [popCellElement], "block");
|
||||
}
|
||||
}
|
||||
operation.srcs.find((idItem) => {
|
||||
if (!item.querySelector(`.av__body [data-id="${idItem}"]`)) {
|
||||
showMessage(window.siyuan.languages.insertRowTip);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
} else if (operation.action === "addAttrViewView") {
|
||||
if (item.getAttribute("data-node-id") === operation.blockID) {
|
||||
openMenuPanel({protyle, blockElement: item, type: "config"});
|
||||
|
|
|
@ -166,11 +166,7 @@ ${colType === "block" ? ' data-detached="true"' : ""}>${renderCell(genCellValue(
|
|||
groupID: options.groupID,
|
||||
previousID: options.previousId,
|
||||
}, (response) => {
|
||||
if (!response.data.values) {
|
||||
if (!response.data.ignore) {
|
||||
showMessage(window.siyuan.languages.insertRowTip);
|
||||
}
|
||||
} else {
|
||||
if (response.data.values) {
|
||||
let popCellElement: HTMLElement;
|
||||
const updateIds = Object.keys(response.data.values);
|
||||
options.blockElement.querySelectorAll('[data-type="ghost"]').forEach(rowItem => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue