mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-04 04:36:53 +00:00
fix(nc-gui): review changes
This commit is contained in:
@@ -360,7 +360,6 @@ const changeIntegration = (triggerTestConnection = false) => {
|
||||
formState.value.dataSource = {
|
||||
client: selectedIntegration.value.sub_type,
|
||||
connection: {
|
||||
client: selectedIntegration.value.sub_type,
|
||||
database: selectedIntegrationDb.value,
|
||||
},
|
||||
searchPath: selectedIntegration.value.config?.searchPath,
|
||||
@@ -426,7 +425,7 @@ const isIntgrationDisabled = (integration: IntegrationType = {}) => {
|
||||
case ClientType.SQLITE:
|
||||
return {
|
||||
isDisabled: integration?.source_count && integration.source_count > 0,
|
||||
msg: 'Sqlite support only 1 database per integration',
|
||||
msg: 'Sqlite support only 1 database per connection',
|
||||
}
|
||||
|
||||
default:
|
||||
|
||||
@@ -294,11 +294,9 @@ onMounted(async () => {
|
||||
.filter(([key]) => !definedParameters.includes(key))
|
||||
.map(([key, value]) => ({ key: key as string, value: value as string }))
|
||||
|
||||
const client = activeBase.config?.client || activeBase.config?.connection?.client
|
||||
|
||||
formState.value = {
|
||||
title: activeBase.alias || '',
|
||||
dataSource: { client, connection: {}, ...(activeBase.config || {}), searchPath: activeBase.config?.searchPath || [] },
|
||||
dataSource: { connection: {}, ...(activeBase.config || {}), searchPath: activeBase.config?.searchPath || [] },
|
||||
inflection: {
|
||||
inflectionColumn: activeBase.inflection_column,
|
||||
inflectionTable: activeBase.inflection_table,
|
||||
|
||||
Reference in New Issue
Block a user