mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 01:25:36 -05:00
fix publish button not always enabling correctly (#12869)
This commit is contained in:
@@ -382,6 +382,7 @@ export class PublishDatabaseDialog {
|
||||
|
||||
private createDatabaseRow(view: azdata.ModelView): azdata.FlexContainer {
|
||||
this.targetDatabaseDropDown = view.modelBuilder.dropDown().withProperties({
|
||||
values: [this.getDefaultDatabaseName()],
|
||||
value: this.getDefaultDatabaseName(),
|
||||
ariaLabel: constants.databaseNameLabel,
|
||||
required: true,
|
||||
@@ -556,7 +557,8 @@ export class PublishDatabaseDialog {
|
||||
await this.updateConnectionComponents(result.connection, <string>this.connectionId);
|
||||
|
||||
if (result.databaseName) {
|
||||
(<azdata.DropDownComponent>this.targetDatabaseDropDown).value = result.databaseName;
|
||||
this.targetDatabaseDropDown!.values?.push(result.databaseName);
|
||||
this.targetDatabaseDropDown!.value = result.databaseName;
|
||||
}
|
||||
|
||||
for (let key in result.sqlCmdVariables) {
|
||||
|
||||
Reference in New Issue
Block a user