fix(core-connections): provide connection id for includes map CB-1295, CB-1296, CB-1297

This commit is contained in:
Naumov Alexey
2021-09-30 16:49:26 +03:00
parent b140f2a2db
commit a578b19dda
3 changed files with 6 additions and 5 deletions
@@ -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);
});
@@ -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)