mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-10 02:02:35 -05:00
fix filepath getting regenerated ever time page is entered (#6132)
This commit is contained in:
@@ -125,9 +125,13 @@ export abstract class DacFxConfigPage extends BasePage {
|
||||
}
|
||||
|
||||
let values = await this.getDatabaseValues();
|
||||
this.model.database = values[0].name;
|
||||
this.model.filePath = this.generateFilePathFromDatabaseAndTimestamp();
|
||||
this.fileTextBox.value = this.model.filePath;
|
||||
|
||||
// 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.filePath = this.generateFilePathFromDatabaseAndTimestamp();
|
||||
this.fileTextBox.value = this.model.filePath;
|
||||
}
|
||||
|
||||
this.databaseDropdown.updateProperties({
|
||||
values: values
|
||||
|
||||
Reference in New Issue
Block a user