diff --git a/extensions/sql-migration/src/constants/strings.ts b/extensions/sql-migration/src/constants/strings.ts index 2974caf824..29865c39f5 100644 --- a/extensions/sql-migration/src/constants/strings.ts +++ b/extensions/sql-migration/src/constants/strings.ts @@ -30,6 +30,7 @@ export const SKU_RECOMMENDATION_ALL_SUCCESSFUL = (databaseCount: number): string export const SKU_RECOMMENDATION_ASSESSMENT_ERROR = (serverName: string): string => { return localize('sql.migration.wizard.sku.assessment.error', "An error occurred while assessing the server '{0}'.", serverName); }; +export const REFRESH_ASSESSMENT_BUTTON_LABEL = localize('sql.migration.refresh.assessment.button.label', "Refresh Assessment"); export const SKU_RECOMMENDATION_CHOOSE_A_TARGET = localize('sql.migration.wizard.sku.choose_a_target', "Choose your Azure SQL target"); export const SKU_RECOMMENDATION_MI_CARD_TEXT = localize('sql.migration.sku.mi.card.title', "Azure SQL Managed Instance (PaaS)"); export const SKU_RECOMMENDATION_VM_CARD_TEXT = localize('sql.migration.sku.vm.card.title', "SQL Server on Azure Virtual Machine (IaaS)"); diff --git a/extensions/sql-migration/src/wizard/skuRecommendationPage.ts b/extensions/sql-migration/src/wizard/skuRecommendationPage.ts index 5a1edc6ec0..b826e70c04 100644 --- a/extensions/sql-migration/src/wizard/skuRecommendationPage.ts +++ b/extensions/sql-migration/src/wizard/skuRecommendationPage.ts @@ -86,6 +86,16 @@ export class SKURecommendationPage extends MigrationWizardPage { this._detailsComponent = this.createDetailsComponent(view); // The details of what can be moved + const refreshAssessmentButton = this._view.modelBuilder.button().withProps({ + iconPath: IconPathHelper.refresh, + label: constants.REFRESH_ASSESSMENT_BUTTON_LABEL, + width: 130 + }).component(); + + this._disposables.push(refreshAssessmentButton.onDidClick(() => { + this.constructDetails(); + })); + const chooseYourTargetText = this._view.modelBuilder.text().withProps({ value: constants.SKU_RECOMMENDATION_CHOOSE_A_TARGET, CSSStyles: { @@ -101,6 +111,7 @@ export class SKURecommendationPage extends MigrationWizardPage { [ igContainer, this._detailsComponent, + refreshAssessmentButton, chooseYourTargetText ] ).component();