Fix #5809: Data-tier wizard "Source Server" shouldn't show database name (#6125)

* Removing database name from server connection and adding required asterisk to database dropdowns

* also remove database name in flat file import wizard
This commit is contained in:
Kim Santiago
2019-06-24 11:44:26 -07:00
committed by GitHub
parent 4fe81d8449
commit cf85bb14f5
4 changed files with 13 additions and 20 deletions

View File

@@ -96,9 +96,7 @@ export abstract class DacFxConfigPage extends BasePage {
}
protected async createDatabaseDropdown(): Promise<azdata.FormComponent> {
this.databaseDropdown = this.view.modelBuilder.dropDown().withProperties({
required: true
}).component();
this.databaseDropdown = this.view.modelBuilder.dropDown().component();
// Handle database changes
this.databaseDropdown.onValueChanged(async () => {
@@ -107,7 +105,9 @@ export abstract class DacFxConfigPage extends BasePage {
this.model.filePath = this.fileTextBox.value;
});
this.databaseLoader = this.view.modelBuilder.loadingComponent().withItem(this.databaseDropdown).component();
this.databaseLoader = this.view.modelBuilder.loadingComponent().withItem(this.databaseDropdown).withProperties({
required: true
}).component();
return {
component: this.databaseLoader,