mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-03 09:35:40 -05:00
Stop clearing out connecting and connected state when cancelling out of connection dialog (#7254)
* Stop clearing out connecting and connected state * tweaks * Handling cancel while connecting * fix typo * PR comments
This commit is contained in:
@@ -302,8 +302,12 @@ export class QueryInput extends EditorInput implements IEncodingSupport, IConnec
|
||||
}
|
||||
|
||||
public onConnectCanceled(): void {
|
||||
// If we're currently connecting and then cancel, set connected state to false
|
||||
// Otherwise, keep connected state as it was
|
||||
if (this.state.connecting) {
|
||||
this.state.connected = false;
|
||||
}
|
||||
this.state.connecting = false;
|
||||
this.state.connected = false;
|
||||
}
|
||||
|
||||
public onConnectSuccess(params?: INewConnectionParams): void {
|
||||
|
||||
Reference in New Issue
Block a user