mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-4067 cleanup testContext info
This commit is contained in:
+6
-6
@@ -7,15 +7,15 @@
|
||||
*/
|
||||
|
||||
export interface IConnectionTestContext {
|
||||
clientVersion: string | null;
|
||||
serverVersion: string | null;
|
||||
connectTime: string | null;
|
||||
clientVersion: string | undefined;
|
||||
serverVersion: string | undefined;
|
||||
connectTime: string | undefined;
|
||||
}
|
||||
|
||||
export function connectionTestContext(): IConnectionTestContext {
|
||||
return {
|
||||
clientVersion: null,
|
||||
serverVersion: null,
|
||||
connectTime: null,
|
||||
clientVersion: undefined,
|
||||
serverVersion: undefined,
|
||||
connectTime: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
+3
-3
@@ -456,9 +456,9 @@ export class ConnectionFormOptionsPart extends FormPart<IConnectionFormOptionsSt
|
||||
} else {
|
||||
const info = await this.connectionInfoResource.test(state.projectId, this.state);
|
||||
|
||||
testContext.clientVersion = info.clientVersion ?? null;
|
||||
testContext.serverVersion = info.serverVersion ?? null;
|
||||
testContext.connectTime = info.connectTime ?? null;
|
||||
testContext.clientVersion = info.clientVersion;
|
||||
testContext.serverVersion = info.serverVersion;
|
||||
testContext.connectTime = info.connectTime;
|
||||
|
||||
// to prevent form from resetting the state after saving
|
||||
ExecutorInterrupter.interrupt(contexts);
|
||||
|
||||
Reference in New Issue
Block a user