mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix(core-connections): provide connection id for includes map CB-1295, CB-1296, CB-1297
This commit is contained in:
@@ -133,15 +133,15 @@ export class ConnectionFormService {
|
||||
const config = contexts.getContext(connectionConfigContext);
|
||||
|
||||
if (credentialsState.authModelId) {
|
||||
if (config.credentials === undefined) {
|
||||
config.credentials = {};
|
||||
if (!config.credentials) {
|
||||
config.credentials = { ...data.state.config.credentials };
|
||||
}
|
||||
|
||||
config.credentials = observable(config.credentials);
|
||||
}
|
||||
|
||||
if (credentialsState.networkHandlers.length > 0) {
|
||||
if (config.networkHandlersConfig === undefined) {
|
||||
if (!config.networkHandlersConfig) {
|
||||
config.networkHandlersConfig = [];
|
||||
}
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ export class ConnectionInfoResource extends CachedMapResource<string, Connection
|
||||
const { connection } = await this.graphQLService.sdk.initConnection({
|
||||
...config,
|
||||
...this.getDefaultIncludes(),
|
||||
...this.getIncludesMap(),
|
||||
...this.getIncludesMap(config.id),
|
||||
});
|
||||
this.updateConnection(connection);
|
||||
});
|
||||
|
||||
+2
-1
@@ -50,7 +50,8 @@ export class ObjectPropertyTableFooterService {
|
||||
}
|
||||
|
||||
const selectedNodes = this.getSelectedNodes(context.data.tableState.selectedList);
|
||||
return !selectedNodes.some(node => node.features?.includes(ENodeFeature.canDelete));
|
||||
return !selectedNodes.some(node => node.features?.includes(ENodeFeature.canDelete))
|
||||
|| this.navTreeResource.isLoading();
|
||||
},
|
||||
onClick: async context => {
|
||||
const nodes = this.getSelectedNodes(context.data.tableState.selectedList)
|
||||
|
||||
Reference in New Issue
Block a user