mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
Merge pull request #1051 from dbeaver/fix/CB-2410-new-connections
fix(core-connections, plugin-connections-administration): CB-2410 Show new connections on the top of the list
This commit is contained in:
@@ -177,7 +177,7 @@ export class ConnectionInfoResource extends CachedMapResource<IConnectionInfoPar
|
||||
...this.getIncludesMap(key),
|
||||
});
|
||||
|
||||
return this.add(connection);
|
||||
return this.add(connection, true);
|
||||
}
|
||||
|
||||
async searchDatabases(hosts: string[]): Promise<AdminConnectionSearchInfo[]> {
|
||||
|
||||
+1
@@ -64,6 +64,7 @@ export class ConnectionsAdministrationController {
|
||||
this.isProcessing = true;
|
||||
try {
|
||||
await this.connectionInfoResource.refresh(CachedMapAllKey);
|
||||
this.connectionInfoResource.cleanNewFlags();
|
||||
this.notificationService.logSuccess({ title: 'connections_administration_tools_refresh_success' });
|
||||
} catch (exception: any) {
|
||||
this.notificationService.logException(exception, 'connections_administration_tools_refresh_fail');
|
||||
|
||||
Reference in New Issue
Block a user