mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fix backup (#4274)
* check to see whether options is available * removing options state and using _modelOptions * removed additional space * making options getter private as not intended to expose
This commit is contained in:
@@ -74,6 +74,7 @@ const defaultOptions: IModalOptions = {
|
|||||||
export abstract class Modal extends Disposable implements IThemable {
|
export abstract class Modal extends Disposable implements IThemable {
|
||||||
protected _useDefaultMessageBoxLocation: boolean = true;
|
protected _useDefaultMessageBoxLocation: boolean = true;
|
||||||
protected _messageElement: HTMLElement;
|
protected _messageElement: HTMLElement;
|
||||||
|
protected _modalOptions: IModalOptions;
|
||||||
private _messageIcon: HTMLElement;
|
private _messageIcon: HTMLElement;
|
||||||
private _messageSeverity: Builder;
|
private _messageSeverity: Builder;
|
||||||
private _messageSummary: Builder;
|
private _messageSummary: Builder;
|
||||||
@@ -114,7 +115,6 @@ export abstract class Modal extends Disposable implements IThemable {
|
|||||||
private _keydownListener: IDisposable;
|
private _keydownListener: IDisposable;
|
||||||
private _resizeListener: IDisposable;
|
private _resizeListener: IDisposable;
|
||||||
|
|
||||||
private _modalOptions: IModalOptions;
|
|
||||||
private _backButton: Button;
|
private _backButton: Button;
|
||||||
|
|
||||||
private _modalShowingContext: IContextKey<Array<string>>;
|
private _modalShowingContext: IContextKey<Array<string>>;
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export class OptionsDialog extends Modal {
|
|||||||
constructor(
|
constructor(
|
||||||
title: string,
|
title: string,
|
||||||
name: string,
|
name: string,
|
||||||
private options: IOptionsDialogOptions,
|
options: IOptionsDialogOptions,
|
||||||
@IPartService partService: IPartService,
|
@IPartService partService: IPartService,
|
||||||
@IWorkbenchThemeService private _workbenchThemeService: IWorkbenchThemeService,
|
@IWorkbenchThemeService private _workbenchThemeService: IWorkbenchThemeService,
|
||||||
@IContextViewService private _contextViewService: IContextViewService,
|
@IContextViewService private _contextViewService: IContextViewService,
|
||||||
@@ -178,6 +178,10 @@ export class OptionsDialog extends Modal {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private get options(): IOptionsDialogOptions {
|
||||||
|
return this._modalOptions as IOptionsDialogOptions;
|
||||||
|
}
|
||||||
|
|
||||||
public get optionValues(): { [name: string]: any } {
|
public get optionValues(): { [name: string]: any } {
|
||||||
return this._optionValues;
|
return this._optionValues;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user