Azure Subscription Page and another azdata change (#11877)

* Azure subscription page

* .
This commit is contained in:
Amir Omidi
2020-08-20 10:23:48 -07:00
committed by GitHub
parent 9861ca77e0
commit bcce80094d
6 changed files with 145 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ import { MigrationWizardPage } from '../models/migrationWizardPage';
import { MigrationStateModel, StateChangeEvent } from '../models/stateMachine';
import { Product } from '../models/product';
import { CONGRATULATIONS, SKU_RECOMMENDATION_PAGE_TITLE, SKU_RECOMMENDATION_ALL_SUCCESSFUL } from '../models/strings';
import { Disposable } from 'vscode';
export class SKURecommendationPage extends MigrationWizardPage {
// For future reference: DO NOT EXPOSE WIZARD DIRECTLY THROUGH HERE.
@@ -81,12 +82,14 @@ export class SKURecommendationPage extends MigrationWizardPage {
// fill in some of that information
}
private eventListener: Disposable | undefined;
public async onPageEnter(): Promise<void> {
this.eventListener = this.migrationStateModel.stateChangeEvent(async (e) => this.onStateChangeEvent(e));
this.constructDetails();
}
public async onPageLeave(): Promise<void> {
this.eventListener?.dispose();
}
protected async handleStateChange(e: StateChangeEvent): Promise<void> {