This commit is contained in:
parent
1b1bdcc9ea
commit
d0dd7395b4
6 changed files with 10 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"selectRelation": "Please select the related column first",
|
||||
"backRelation": "Bidirectional",
|
||||
"thisDatabase": "This database",
|
||||
"relatedTo": "Relation to",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"selectRelation": "Seleccione primero la columna relacionada",
|
||||
"backRelation": "Bidireccional",
|
||||
"thisDatabase": "Esta base de datos",
|
||||
"relatedTo": "Relación con",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"selectRelation": "Veuillez d'abord sélectionner la colonne associée",
|
||||
"backRelation": "Bidirectionnel",
|
||||
"thisDatabase": "Cette base de données",
|
||||
"relatedTo" : " Relation avec ",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"selectRelation": "請先選擇關聯列",
|
||||
"backRelation": "雙向關聯",
|
||||
"thisDatabase": "目前資料庫",
|
||||
"relatedTo": "關聯至",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"selectRelation": "请先选择关联列",
|
||||
"backRelation": "双向关联",
|
||||
"thisDatabase": "当前数据库",
|
||||
"relatedTo": "关联至",
|
||||
|
|
|
@ -7,6 +7,7 @@ import {transaction} from "../../wysiwyg/transaction";
|
|||
import {genIconHTML} from "../util";
|
||||
import {unicode2Emoji} from "../../../emoji";
|
||||
import {getColIconByType} from "./col";
|
||||
import {showMessage} from "../../../dialog/message";
|
||||
|
||||
const updateCol = (options: {
|
||||
target: HTMLElement,
|
||||
|
@ -58,6 +59,10 @@ const updateCol = (options: {
|
|||
};
|
||||
|
||||
const genSearchList = (element: Element, keyword: string, avId: string, isRelation: boolean, cb?: () => void) => {
|
||||
if (!isRelation && !avId) {
|
||||
showMessage(window.siyuan.languages.selectRelation);
|
||||
return
|
||||
}
|
||||
fetchPost(isRelation ? "/api/av/searchAttributeViewRelationKey" : "/api/av/searchAttributeViewNonRelationKey", {
|
||||
avID: avId,
|
||||
keyword
|
||||
|
|
Loading…
Add table
Reference in a new issue