mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Close insights dialog properly when escape is pressed (#1319)
This commit is contained in:
@@ -332,6 +332,10 @@ export class InsightsDialogView extends Modal {
|
|||||||
this._taskButtonDisposables = [];
|
this._taskButtonDisposables = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected onClose(e: StandardKeyboardEvent) {
|
||||||
|
this.close();
|
||||||
|
}
|
||||||
|
|
||||||
private hasActions(): boolean {
|
private hasActions(): boolean {
|
||||||
return !!(this._insight && this._insight.actions && this._insight.actions.types
|
return !!(this._insight && this._insight.actions && this._insight.actions.types
|
||||||
&& this._insight.actions.types.length > 0);
|
&& this._insight.actions.types.length > 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user