Parameter renaming and number of calls reduce (#23760)
Co-authored-by: Alexander Perfilyev <aperfilyev@microsoft.com>
This commit is contained in:
Родитель
8bdc7d0346
Коммит
8b4b84e5c0
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче