mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-04 01:25:38 -05:00
Added Refresh Assessment Button in Azure SQL Target Page (#16706)
* Added Refresh Assessment Button in Azure SQL Target Wizard * UI updated * changes done
This commit is contained in:
@@ -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)");
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user