admin ui: improved relation description

This commit is contained in:
dswbx
2025-01-18 16:22:26 +01:00
parent 7cc437e816
commit fc08108ee0
5 changed files with 30 additions and 23 deletions

View File

@@ -89,13 +89,13 @@ const modals = {
initialPath: ["entities", "entity"],
initialState: { action: "entity" }
}),
createRelation: (rel: { source?: string; target?: string; type?: string }) =>
createRelation: (entity?: string) =>
bkndModals.open(bkndModals.ids.dataCreate, {
initialPath: ["entities", "relation"],
initialState: {
action: "relation",
relations: {
create: [rel as any]
create: [{ source: entity, type: "n:1" } as any]
}
}
}),