mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix(core-connections): connection name autofill
This commit is contained in:
+1
-1
@@ -122,7 +122,7 @@ implements IInitializableController {
|
||||
const databaseNames = ['New', ...this.drivers.map(driver => driver.name!)]
|
||||
.filter(Boolean);
|
||||
|
||||
if (!this.model.connection.name
|
||||
if (this.model.connection.name === undefined
|
||||
|| (this.nameTemplate.test(this.model.connection.name)
|
||||
&& databaseNames.some(driver => this.model.connection.name.startsWith(driver)))
|
||||
) {
|
||||
|
||||
-2
@@ -75,7 +75,6 @@ export class CreateConnectionController {
|
||||
id: uuid(),
|
||||
driverId,
|
||||
template: false,
|
||||
name: '',
|
||||
authProperties: [],
|
||||
properties: {},
|
||||
} as Partial<ConnectionInfo> as any;
|
||||
@@ -87,7 +86,6 @@ export class CreateConnectionController {
|
||||
id: uuid(),
|
||||
driverId: database.defaultDriver,
|
||||
template: false,
|
||||
name: '',
|
||||
host: database.host,
|
||||
port: `${database.port}`,
|
||||
authProperties: [],
|
||||
|
||||
Reference in New Issue
Block a user