Browse Source

feat(nc-gui): Improved readability of edge labels

pull/4071/head
Muhammed Mustafa 2 years ago committed by braks
parent
commit
b835c5e22b
  1. 4
      packages/nc-gui/components/erd/utils.ts

4
packages/nc-gui/components/erd/utils.ts

@ -137,10 +137,10 @@ export function useErdElements(tables: MaybeRef<TableType[]>, props: MaybeRef<Er
}
if (simple) {
return `${metasWithIdAsKey.value[source].title} ${type} ${metasWithIdAsKey.value[target].title}`
return `${metasWithIdAsKey.value[source].title} - ${typeLabel} - ${metasWithIdAsKey.value[target].title}`
}
return `[${metasWithIdAsKey.value[source].title}] ${parentCol.title} ${typeLabel} ${childCol.title} [${metasWithIdAsKey.value[target].title}]`
return `[${metasWithIdAsKey.value[source].title}] ${parentCol.title} - ${typeLabel} - ${childCol.title} [${metasWithIdAsKey.value[target].title}]`
}
function createNodes() {

Loading…
Cancel
Save