mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 09:35:38 -05:00
@@ -34,16 +34,14 @@ export class CustomDialogService {
|
||||
}
|
||||
|
||||
public closeDialog(dialog: Dialog): void {
|
||||
let dialogModal = this._dialogModals.get(dialog);
|
||||
if (dialogModal) {
|
||||
dialogModal.cancel();
|
||||
}
|
||||
this._dialogModals.get(dialog)?.cancel();
|
||||
}
|
||||
|
||||
public closeWizard(wizard: Wizard): void {
|
||||
let wizardModal = this._wizardModals.get(wizard);
|
||||
if (wizardModal) {
|
||||
wizardModal.cancel();
|
||||
}
|
||||
this._wizardModals.get(wizard)?.cancel();
|
||||
}
|
||||
|
||||
public getWizardModal(wizard: Wizard): WizardModal | undefined {
|
||||
return this._wizardModals.get(wizard);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ export class WizardModal extends Modal {
|
||||
page.onUpdate(() => this.setButtonsForPage(this._wizard.currentPage));
|
||||
}
|
||||
|
||||
private async showPage(index: number, validate: boolean = true, focus: boolean = false): Promise<void> {
|
||||
public async showPage(index: number, validate: boolean = true, focus: boolean = false): Promise<void> {
|
||||
let pageToShow = this._wizard.pages[index];
|
||||
if (!pageToShow) {
|
||||
this.done(validate).catch(err => onUnexpectedError(err));
|
||||
|
||||
Reference in New Issue
Block a user