mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
admin ui: improved relation description
This commit is contained in:
@@ -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]
|
||||
}
|
||||
}
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user