Parameter renaming and number of calls reduce (#23760)

Co-authored-by: Alexander Perfilyev <aperfilyev@microsoft.com>
This commit is contained in:
Alexander Perfilyev 2023-07-12 15:28:23 -07:00 коммит произвёл GitHub
Родитель 8bdc7d0346
Коммит 8b4b84e5c0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -141,7 +141,7 @@ export const ASSESSMENT_COMPLETED = (serverName: string): string => {
export const ASSESSMENT_FAILED = (serverName: string): string => {
return localize('sql.migration.assessment.failed', "The assessment of your SQL Server instance '{0}' failed.", serverName);
};
export function ASSESSMENT_TILE(serverName: string): string {
export function ASSESSMENT_TITLE(serverName: string): string {
return localize('sql.migration.assessment', "Assessment results for '{0}'", serverName);
}
export function CAN_BE_MIGRATED(eligibleDbs: number, totalDbs: number): string {

Просмотреть файл

@ -417,9 +417,10 @@ export class SKURecommendationPage extends MigrationWizardPage {
this._serverName = this.migrationStateModel.serverName || (await getSourceConnectionProfile()).serverName;
const miDialog = new AssessmentResultsDialog('ownerUri', this.migrationStateModel, constants.ASSESSMENT_TILE(this._serverName), this, MigrationTargetType.SQLMI);
const vmDialog = new AssessmentResultsDialog('ownerUri', this.migrationStateModel, constants.ASSESSMENT_TILE(this._serverName), this, MigrationTargetType.SQLVM);
const dbDialog = new AssessmentResultsDialog('ownerUri', this.migrationStateModel, constants.ASSESSMENT_TILE(this._serverName), this, MigrationTargetType.SQLDB);
const assessmentTitle = constants.ASSESSMENT_TITLE(this._serverName);
const miDialog = new AssessmentResultsDialog('ownerUri', this.migrationStateModel, assessmentTitle, this, MigrationTargetType.SQLMI);
const vmDialog = new AssessmentResultsDialog('ownerUri', this.migrationStateModel, assessmentTitle, this, MigrationTargetType.SQLVM);
const dbDialog = new AssessmentResultsDialog('ownerUri', this.migrationStateModel, assessmentTitle, this, MigrationTargetType.SQLDB);
this._disposables.push(button.onDidClick(async (e) => {
switch (this._rbg.selectedCardId) {