fix filepath getting regenerated ever time page is entered (#6132)

This commit is contained in:
Kim Santiago
2019-06-24 09:52:05 -07:00
committed by GitHub
parent 08cf731c87
commit 46b8d55280

View File

@@ -125,9 +125,13 @@ export abstract class DacFxConfigPage extends BasePage {
} }
let values = await this.getDatabaseValues(); let values = await this.getDatabaseValues();
// only update values and regenerate filepath if this is the first time and database isn't set yet
if (this.model.database !== values[0].name) {
this.model.database = values[0].name; this.model.database = values[0].name;
this.model.filePath = this.generateFilePathFromDatabaseAndTimestamp(); this.model.filePath = this.generateFilePathFromDatabaseAndTimestamp();
this.fileTextBox.value = this.model.filePath; this.fileTextBox.value = this.model.filePath;
}
this.databaseDropdown.updateProperties({ this.databaseDropdown.updateProperties({
values: values values: values