mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-16 14:50:15 +08:00
dbeaver/pro#8741 fix: update container label visibility logic when no… (#4347)
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
This commit is contained in:
co-authored by
Daria Marutkina
parent
694d3b241f
commit
ffa7f730de
+3
-4
@@ -223,9 +223,8 @@ export class ConnectionSchemaManagerBootstrap extends Bootstrap {
|
||||
!this.appAuthService.authenticated ||
|
||||
!this.connectionSchemaManagerService.objectContainerList ||
|
||||
(this.connectionSchemaManagerService.currentObjectSchemaId === undefined &&
|
||||
this.connectionSchemaManagerService.currentObjectCatalogId === undefined &&
|
||||
!this.connectionSchemaManagerService.isObjectCatalogChangeable &&
|
||||
!this.connectionSchemaManagerService.isObjectSchemaChangeable) ||
|
||||
this.connectionSchemaManagerService.currentObjectCatalogId === undefined) ||
|
||||
(!this.connectionSchemaManagerService.isObjectCatalogChangeable && !this.connectionSchemaManagerService.isObjectSchemaChangeable) ||
|
||||
(this.connectionSchemaManagerService.objectContainerList.schemaList.length === 0 &&
|
||||
this.connectionSchemaManagerService.objectContainerList.catalogList.length === 0),
|
||||
getLoader: () => {
|
||||
@@ -246,7 +245,7 @@ export class ConnectionSchemaManagerBootstrap extends Bootstrap {
|
||||
);
|
||||
|
||||
if (!label) {
|
||||
label = 'plugin_datasource_context_switch_select_container';
|
||||
label = this.localizationService.translate('plugin_datasource_context_switch_select_container');
|
||||
}
|
||||
|
||||
const { clippedLabel } = getMenuLabelClipped(label);
|
||||
|
||||
Reference in New Issue
Block a user