fix setCurrentPage (#12025)

* fix setCurrentPage

* Fix wrong import
This commit is contained in:
Amir Omidi
2020-08-31 12:36:38 -07:00
committed by GitHub
parent 404260b8a0
commit 61e5003931
3 changed files with 9 additions and 11 deletions

View File

@@ -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));