mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -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();
|
let values = await this.getDatabaseValues();
|
||||||
this.model.database = values[0].name;
|
|
||||||
this.model.filePath = this.generateFilePathFromDatabaseAndTimestamp();
|
// only update values and regenerate filepath if this is the first time and database isn't set yet
|
||||||
this.fileTextBox.value = this.model.filePath;
|
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({
|
this.databaseDropdown.updateProperties({
|
||||||
values: values
|
values: values
|
||||||
|
|||||||
Reference in New Issue
Block a user