mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-2463 feat(plugin-connections) Do not close connection settings on login
This commit is contained in:
+3
-3
@@ -13,9 +13,9 @@ import { injectable } from '@cloudbeaver/core-di';
|
||||
import { CommonDialogService, ConfirmationDialog, DialogueStateResult } from '@cloudbeaver/core-dialogs';
|
||||
import { NotificationService } from '@cloudbeaver/core-events';
|
||||
import { ExecutorInterrupter, IExecutorHandler } from '@cloudbeaver/core-executor';
|
||||
import { SessionDataResource } from '@cloudbeaver/core-root';
|
||||
import type { ConnectionConfig, ResourceKey } from '@cloudbeaver/core-sdk';
|
||||
import { OptionsPanelService } from '@cloudbeaver/core-ui';
|
||||
import { AuthenticationService } from '@cloudbeaver/plugin-authentication';
|
||||
|
||||
import { ConnectionAuthService } from '../ConnectionAuthService';
|
||||
import { ConnectionFormService } from '../ConnectionForm/ConnectionFormService';
|
||||
@@ -36,13 +36,13 @@ export class PublicConnectionFormService {
|
||||
private readonly connectionFormService: ConnectionFormService,
|
||||
private readonly connectionInfoResource: ConnectionInfoResource,
|
||||
private readonly connectionAuthService: ConnectionAuthService,
|
||||
private readonly sessionDataResource: SessionDataResource
|
||||
private readonly authenticationService: AuthenticationService,
|
||||
) {
|
||||
this.formState = null;
|
||||
this.optionsPanelService.closeTask.addHandler(this.closeHandler);
|
||||
this.connectionInfoResource.onDataUpdate.addPostHandler(this.closeRemoved);
|
||||
this.connectionInfoResource.onItemDelete.addPostHandler(this.closeDeleted);
|
||||
this.sessionDataResource.onDataOutdated.addHandler(() => {
|
||||
this.authenticationService.onLogout.addHandler(() => {
|
||||
this.close(true);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user