Machine Learning Services - Model detection in predict wizard (#9609)

* Machine Learning Services - Model detection in predict wizard
This commit is contained in:
Leila Lali
2020-03-25 13:18:19 -07:00
committed by GitHub
parent 176edde2aa
commit ab82c04766
44 changed files with 2265 additions and 376 deletions

View File

@@ -68,7 +68,7 @@ export class WizardView extends MainViewBase {
this._pages = pages;
this._wizard.pages = pages.map(x => this.createWizardPage(x.title || '', x));
this._wizard.onPageChanged(async (info) => {
this.onWizardPageChanged(info);
await this.onWizardPageChanged(info);
});
return this._wizard;
@@ -85,17 +85,17 @@ export class WizardView extends MainViewBase {
return true;
}
private onWizardPageChanged(pageInfo: azdata.window.WizardPageChangeInfo) {
private async onWizardPageChanged(pageInfo: azdata.window.WizardPageChangeInfo) {
let idxLast = pageInfo.lastPage;
let lastPage = this._pages[idxLast];
if (lastPage && lastPage.onLeave) {
lastPage.onLeave();
await lastPage.onLeave();
}
let idx = pageInfo.newPage;
let page = this._pages[idx];
if (page && page.onEnter) {
page.onEnter();
await page.onEnter();
}
}