mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 17:46:00 +00:00
PK editor iun column editor
This commit is contained in:
@@ -22,15 +22,7 @@
|
||||
|
||||
</script>
|
||||
|
||||
<FormProvider
|
||||
initialValues={{
|
||||
...columnInfo,
|
||||
isPrimaryKey:
|
||||
!!columnInfo &&
|
||||
!!tableInfo?.primaryKey &&
|
||||
!!tableInfo.primaryKey.columns.find(x => x.columnName == columnInfo.columnName),
|
||||
}}
|
||||
>
|
||||
<FormProvider initialValues={columnInfo}>
|
||||
<ModalBase {...$$restProps}>
|
||||
<svelte:fragment slot="header"
|
||||
>{columnInfo ? 'Edit column' : `Add column ${(tableInfo?.columns || []).length + 1}`}</svelte:fragment
|
||||
|
||||
Reference in New Issue
Block a user