Update action buttons texts (#17193)

Update texts for action buttons
This commit is contained in:
goyal-anjali
2021-09-30 19:14:57 +05:30
committed by GitHub
parent c27ae1d727
commit 5710a53e86
3 changed files with 5 additions and 2 deletions

View File

@@ -246,6 +246,7 @@ export const IMPACT = localize('sql.migration.impact', "Impact");
export const ALL_FIELDS_REQUIRED = localize('sql.migration.all.fields.required', 'All fields are required.');
//Summary Page
export const START_MIGRATION_TEXT = localize('sql.migration.start.migration.button', "Start migration");
export const SUMMARY_PAGE_TITLE = localize('sql.migration.summary.page.title', "Summary");
export const SUMMARY_MI_TYPE = localize('sql.migration.summary.mi.type', "Azure SQL Managed Instance");
export const SUMMARY_VM_TYPE = localize('sql.migration.summary.vm.type', "SQL Server on Azure Virtual Machine");

View File

@@ -18,7 +18,7 @@ export type Issues = {
};
export class AssessmentResultsDialog {
private static readonly OkButtonText: string = 'OK';
private static readonly SelectButtonText: string = 'Select';
private static readonly CancelButtonText: string = 'Cancel';
private _isOpen: boolean = false;
@@ -68,7 +68,7 @@ export class AssessmentResultsDialog {
this._isOpen = true;
this.dialog = azdata.window.createModelViewDialog(this.title, this.title, 'wide');
this.dialog.okButton.label = AssessmentResultsDialog.OkButtonText;
this.dialog.okButton.label = AssessmentResultsDialog.SelectButtonText;
this._disposables.push(this.dialog.okButton.onClick(async () => await this.execute()));
this.dialog.cancelButton.label = AssessmentResultsDialog.CancelButtonText;

View File

@@ -109,6 +109,8 @@ export class WizardController {
}, {});
});
this._wizardObject.doneButton.label = loc.START_MIGRATION_TEXT;
this._wizardObject.doneButton.onClick(e => {
sendSqlMigrationActionEvent(
TelemetryViews.SqlMigrationWizard,