mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 01:25: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;
|
||||
if (!connection) {
|
||||
this.loadAttachToDropdown(this.model, this.getKernelDisplayName());
|
||||
this.doChangeContext(undefined, true);
|
||||
// If there is no connection, we should choose the previous connection,
|
||||
// which will always be the first item in the list. Either "Select Connection"
|
||||
// or a real connection name
|
||||
this.select(0);
|
||||
return false;
|
||||
}
|
||||
let connectionUri = this._connectionManagementService.getConnectionUri(connection);
|
||||
|
||||
Reference in New Issue
Block a user