CB-3957 fix: verify change availability flags (#1988)

This commit is contained in:
Alexey
2023-09-07 14:41:41 +03:00
committed by GitHub
parent d3054e26ce
commit f479d8410a
@@ -236,7 +236,9 @@ export class ConnectionSchemaManagerBootstrap extends Bootstrap {
this.menuService.addCreator({
menus: [MENU_CONNECTION_DATA_CONTAINER_SELECTOR],
isApplicable: () => this.connectionSchemaManagerService.isObjectCatalogChangeable && !!this.connectionSchemaManagerService.objectContainerList,
isApplicable: () =>
(this.connectionSchemaManagerService.isObjectCatalogChangeable || this.connectionSchemaManagerService.isObjectSchemaChangeable) &&
!!this.connectionSchemaManagerService.objectContainerList,
getItems: (context, items) => {
items = [...items];