mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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 {
|
private createDatabaseRow(view: azdata.ModelView): azdata.FlexContainer {
|
||||||
this.targetDatabaseDropDown = view.modelBuilder.dropDown().withProperties({
|
this.targetDatabaseDropDown = view.modelBuilder.dropDown().withProperties({
|
||||||
|
values: [this.getDefaultDatabaseName()],
|
||||||
value: this.getDefaultDatabaseName(),
|
value: this.getDefaultDatabaseName(),
|
||||||
ariaLabel: constants.databaseNameLabel,
|
ariaLabel: constants.databaseNameLabel,
|
||||||
required: true,
|
required: true,
|
||||||
@@ -556,7 +557,8 @@ export class PublishDatabaseDialog {
|
|||||||
await this.updateConnectionComponents(result.connection, <string>this.connectionId);
|
await this.updateConnectionComponents(result.connection, <string>this.connectionId);
|
||||||
|
|
||||||
if (result.databaseName) {
|
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) {
|
for (let key in result.sqlCmdVariables) {
|
||||||
|
|||||||
Reference in New Issue
Block a user