mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
fix bugs in navigation validation (#20844)
* fix bugs in navigation validation * fix sql db tutorial link, convert doc links
This commit is contained in:
@@ -558,10 +558,6 @@ export class SKURecommendationPage extends MigrationWizardPage {
|
||||
}
|
||||
|
||||
public async onPageEnter(pageChangeInfo: azdata.window.WizardPageChangeInfo): Promise<void> {
|
||||
if (pageChangeInfo.newPage < pageChangeInfo.lastPage) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.wizard.registerNavigationValidator((pageChangeInfo) => {
|
||||
this.wizard.message = { text: '' };
|
||||
if (pageChangeInfo.newPage < pageChangeInfo.lastPage) {
|
||||
@@ -585,20 +581,14 @@ export class SKURecommendationPage extends MigrationWizardPage {
|
||||
}
|
||||
return true;
|
||||
});
|
||||
this.wizard.nextButton.enabled = false;
|
||||
await this.constructDetails();
|
||||
this.wizard.nextButton.enabled = this.migrationStateModel._assessmentResults !== undefined;
|
||||
}
|
||||
|
||||
public async onPageLeave(pageChangeInfo: azdata.window.WizardPageChangeInfo): Promise<void> {
|
||||
this.wizard.message = { text: '' };
|
||||
this.wizard.registerNavigationValidator((pageChangeInfo) => true);
|
||||
this.eventListener?.dispose();
|
||||
this.wizard.message = {
|
||||
text: '',
|
||||
level: azdata.window.MessageLevel.Error
|
||||
};
|
||||
this.wizard.registerNavigationValidator((pageChangeInfo) => {
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
protected async handleStateChange(e: StateChangeEvent): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user