mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-12 23:37:00 +08:00
fix(core-connections): connection name can't be changed
This commit is contained in:
+6
-2
@@ -60,7 +60,7 @@ implements IInitializableController {
|
||||
): Promise<void> => this.loadDriver(driverId, prevValue);
|
||||
|
||||
onFormChange = (value?: unknown, name?: string): void => {
|
||||
this.updateName();
|
||||
this.updateName(name);
|
||||
this.resetPassword(name || '');
|
||||
};
|
||||
|
||||
@@ -124,7 +124,11 @@ implements IInitializableController {
|
||||
this.updateName();
|
||||
}
|
||||
|
||||
private updateName() {
|
||||
private updateName(name?: string) {
|
||||
if (name === 'name') {
|
||||
return;
|
||||
}
|
||||
|
||||
const databaseNames = ['New', ...this.drivers.map(driver => driver.name!)]
|
||||
.filter(Boolean);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user