Save And Close Functionality (#17000)

* save and close

* wip

* working save and close

* cleanup

* pr changes

* pr changes

* fix capitalization

* fix build

* pr fix
This commit is contained in:
Christopher Suh
2021-09-24 14:59:35 -07:00
committed by GitHub
parent 177b56c5ff
commit 207254fa6c
12 changed files with 386 additions and 25 deletions

View File

@@ -187,6 +187,7 @@ export class SqlDatabaseTree {
await this._databaseCount.updateProperties({
'value': constants.DATABASES(this.selectedDbs().length, this._model._databaseAssessment.length)
});
this._model._databaseSelection = <azdata.DeclarativeTableCellValue[][]>this._databaseTable.dataValues;
}));
this._disposables.push(this._databaseTable.onRowSelected(async (e) => {
@@ -947,7 +948,11 @@ export class SqlDatabaseTree {
});
}
await this._instanceTable.setDataValues(instanceTableValues);
await this._databaseTable.setDataValues(this._databaseTableValues);
if (this._model.resumeAssessment && this._model.savedInfo.closedPage >= 2) {
await this._databaseTable.setDataValues(this._model.savedInfo.migrationDatabases);
} else {
await this._databaseTable.setDataValues(this._databaseTableValues);
}
}
// undo when bug #16445 is fixed