mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Notebooks: Fix Cancel for Connection Dialog to Actually Close Window (#8626)
* Fix connection dialog not going away on cancel * Remove unnecessary change
This commit is contained in:
@@ -364,8 +364,10 @@ export class AttachToDropdown extends SelectBox {
|
|||||||
|
|
||||||
let attachToConnections = this.values;
|
let attachToConnections = this.values;
|
||||||
if (!connection) {
|
if (!connection) {
|
||||||
this.loadAttachToDropdown(this.model, this.getKernelDisplayName());
|
// If there is no connection, we should choose the previous connection,
|
||||||
this.doChangeContext(undefined, true);
|
// which will always be the first item in the list. Either "Select Connection"
|
||||||
|
// or a real connection name
|
||||||
|
this.select(0);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
let connectionUri = this._connectionManagementService.getConnectionUri(connection);
|
let connectionUri = this._connectionManagementService.getConnectionUri(connection);
|
||||||
|
|||||||
Reference in New Issue
Block a user