mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 17:23:10 -05:00
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:
@@ -66,9 +66,8 @@ export class CurrentModelsComponent extends ModelViewBase implements IPageView {
|
||||
let dataCountString: string = constants.getDataCount(0);
|
||||
|
||||
this._tableDataCountContainer = modelBuilder.flexContainer().component();
|
||||
this._tableDataCountComponent = modelBuilder.text().withProperties({
|
||||
value: dataCountString,
|
||||
margin: '0'
|
||||
this._tableDataCountComponent = modelBuilder.text().withProps({
|
||||
value: dataCountString
|
||||
}).component();
|
||||
this._tableDataCountContainer.addItem(this._tableDataCountComponent,
|
||||
{
|
||||
@@ -82,7 +81,7 @@ export class CurrentModelsComponent extends ModelViewBase implements IPageView {
|
||||
let formModelBuilder = modelBuilder.formContainer();
|
||||
this._loader = modelBuilder.loadingComponent()
|
||||
.withItem(formModelBuilder.component())
|
||||
.withProperties({
|
||||
.withProps({
|
||||
loading: true
|
||||
}).component();
|
||||
this._emptyModelsComponent = new DataInfoComponent(this._apiWrapper, this);
|
||||
@@ -108,13 +107,13 @@ export class CurrentModelsComponent extends ModelViewBase implements IPageView {
|
||||
flexFlow: 'column',
|
||||
width: '452px'
|
||||
}).component();
|
||||
this._subheadingTextComponent = modelBuilder.text().withProperties(<azdata.CheckBoxProperties>{
|
||||
this._subheadingTextComponent = modelBuilder.text().withProps(<azdata.CheckBoxProperties>{
|
||||
value: this.modelActionType === ModelActionType.Import ? constants.viewImportModelsDesc : constants.viewImportModeledForPredictDesc,
|
||||
CSSStyles: {
|
||||
'font-size': '13px'
|
||||
}
|
||||
}).component();
|
||||
this._subheadingLinkComponent = modelBuilder.hyperlink().withProperties({
|
||||
this._subheadingLinkComponent = modelBuilder.hyperlink().withProps({
|
||||
label: constants.learnMoreLink,
|
||||
url: constants.importModelsDoc,
|
||||
CSSStyles: {
|
||||
|
||||
Reference in New Issue
Block a user