Add validation error message for inputbox component (#8909)

* add validation error message for inputbox component

* addressing comments

* remove copying entire definition for InputBoxProperties
This commit is contained in:
Kim Santiago
2020-01-24 11:38:49 -08:00
committed by GitHub
parent 7e0c7e35a1
commit 9e61c468d1
8 changed files with 112 additions and 21 deletions

View File

@@ -57,6 +57,8 @@ export class DeployConfigPage extends DacFxConfigPage {
async onPageEnter(): Promise<boolean> {
let r1 = await this.populateServerDropdown();
let r2 = await this.populateDeployDatabaseDropdown();
// get existing database values to verify if new database name is valid
await this.getDatabaseValues();
return r1 && r2;
}
@@ -191,7 +193,7 @@ export class DeployConfigPage extends DacFxConfigPage {
//set the database to the first dropdown value if upgrading, otherwise it should get set to the textbox value
if (this.model.upgradeExisting) {
this.model.database = values[0].name;
this.model.database = values[0];
}
this.databaseDropdown.updateProperties({