set initial target db name (#17801)

This commit is contained in:
brian-harris
2021-12-03 10:58:17 -08:00
committed by GitHub
parent a3faff2738
commit f9e1f38393
4 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
"name": "sql-migration",
"displayName": "%displayName%",
"description": "%description%",
"version": "0.1.10",
"version": "0.1.11",
"publisher": "Microsoft",
"preview": true,
"license": "https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt",

View File

@@ -216,10 +216,10 @@ export class SqlMigrationServiceDetailsDialog {
}
private async _updateTableCell(table: azdata.DeclarativeTableComponent, row: number, col: number, value: string, keyName: string): Promise<void> {
const dataValues = table.dataValues;
const dataValues = table.dataValues!;
dataValues![row][col].value = value;
table.dataValues = [];
table.dataValues = dataValues;
await table.setDataValues([]);
await table.setDataValues(dataValues);
await vscode.window.showInformationMessage(constants.AUTH_KEY_REFRESHED(keyName));
}

View File

@@ -821,7 +821,7 @@ export class DatabaseBackupPage extends MigrationWizardPage {
this.migrationStateModel._targetDatabaseNames = [];
this.migrationStateModel._databaseBackup.blobs = [];
this.migrationStateModel._migrationDbs.forEach((db, index) => {
this.migrationStateModel._targetDatabaseNames.push('');
this.migrationStateModel._targetDatabaseNames.push(db);
this.migrationStateModel._databaseBackup.blobs.push(<Blob>{});
const targetDatabaseInput = this._view.modelBuilder.inputBox().withProps({
required: true,
@@ -973,7 +973,7 @@ export class DatabaseBackupPage extends MigrationWizardPage {
});
data.push(targetRow);
});
this._networkShareTargetDatabaseNamesTable.dataValues = data;
await this._networkShareTargetDatabaseNamesTable.setDataValues(data);
data = [];
this.migrationStateModel._migrationDbs.forEach((db, index) => {

View File

@@ -504,7 +504,7 @@ export class IntergrationRuntimePage extends MigrationWizardPage {
]
];
this._authKeyTable.dataValues = data;
await this._authKeyTable.setDataValues(data);
}
} catch (e) {
console.log(e);