withProperties -> withProps (#15876)

* withProperties -> withProps

* Fix errors

* remove ,

* fixes

* Update azdata-test

* Fix dacpac tests

* Add required and remove added layout
This commit is contained in:
Charles Gagnon
2021-06-23 14:26:14 -07:00
committed by GitHub
parent e21f56d719
commit 3a3d7f5271
73 changed files with 417 additions and 414 deletions

View File

@@ -139,7 +139,7 @@ export class FileConfigPage extends ImportPage {
}
private async createServerDropdown(): Promise<azdata.FormComponent> {
this.serverDropdown = this.view.modelBuilder.dropDown().withProperties({
this.serverDropdown = this.view.modelBuilder.dropDown().withProps({
required: true
}).component();
@@ -174,7 +174,7 @@ export class FileConfigPage extends ImportPage {
}
private async createDatabaseDropdown(): Promise<azdata.FormComponent> {
this.databaseDropdown = this.view.modelBuilder.dropDown().withProperties({
this.databaseDropdown = this.view.modelBuilder.dropDown().withProps({
required: true
}).component();
@@ -243,7 +243,7 @@ export class FileConfigPage extends ImportPage {
return fs.existsSync(component.value);
}).component();
this.fileButton = this.view.modelBuilder.button().withProperties({
this.fileButton = this.view.modelBuilder.button().withProps({
label: constants.browseFilesText,
secondary: true
}).component();
@@ -326,7 +326,7 @@ export class FileConfigPage extends ImportPage {
}
return true;
}).withProperties({
}).withProps({
required: true,
}).component();
@@ -342,7 +342,7 @@ export class FileConfigPage extends ImportPage {
private async createSchemaDropdown(): Promise<azdata.FormComponent> {
this.schemaDropdown = this.view.modelBuilder.dropDown().withProperties({
this.schemaDropdown = this.view.modelBuilder.dropDown().withProps({
required: true
}).component();
this.schemaLoader = this.view.modelBuilder.loadingComponent().withItem(this.schemaDropdown).component();

View File

@@ -83,7 +83,7 @@ export class ProsePreviewPage extends ImportPage {
this.loading = this.view.modelBuilder.loadingComponent().component();
this.resultTextComponent = this.view.modelBuilder.text()
.withProperties({
.withProps({
value: this.isSuccess ? constants.successTitleText : constants.failureTitleText
}).component();