diff --git a/projects/editor/src/app/components/properties-panel/model-properties-tab/input-groups/preset-value-properties.component.ts b/projects/editor/src/app/components/properties-panel/model-properties-tab/input-groups/preset-value-properties.component.ts index 7de415f5c2d6977b5231906b9cf57dd8776c29a2..5ca803c746fbd2fea2086754e20b170d9b9ce0cb 100644 --- a/projects/editor/src/app/components/properties-panel/model-properties-tab/input-groups/preset-value-properties.component.ts +++ b/projects/editor/src/app/components/properties-panel/model-properties-tab/input-groups/preset-value-properties.component.ts @@ -22,39 +22,14 @@ import { CombinedProperties } from 'editor/src/app/components/properties-panel/e (input)="updateModel.emit({property: 'value', value: $any($event.target).value })"> </mat-form-field> - <mat-form-field *ngIf="combinedProperties.options !== undefined && !combinedProperties.connectedTo" + <mat-form-field *ngIf="combinedProperties.options !== undefined" appearance="fill" class="wide-form-field"> <mat-label>{{'preset' | translate }}</mat-label> <mat-select [value]="combinedProperties.value" (selectionChange)="updateModel.emit({ property: 'value', value: $event.value })"> <mat-option [value]="null">{{'propertiesPanel.undefined' | translate }}</mat-option> <mat-option *ngFor="let option of $any(combinedProperties.options); let i = index" [value]="i"> - {{option.text}} (Index: {{i}}) - </mat-option> - </mat-select> - </mat-form-field> - - <mat-form-field *ngIf="combinedProperties.richTextOptions !== undefined && !combinedProperties.connectedTo" - appearance="fill" class="wide-form-field"> - <mat-label>{{'preset' | translate }}</mat-label> - <mat-select [value]="combinedProperties.value" - (selectionChange)="updateModel.emit({ property: 'value', value: $event.value })"> - <mat-option [value]="null">{{'propertiesPanel.undefined' | translate }}</mat-option> - <mat-option *ngFor="let option of $any(combinedProperties.richTextOptions); let i = index" [value]="i" - [innerHTML]="option + ' (Index: ' + i + ')'"> - </mat-option> - </mat-select> - </mat-form-field> - - <!-- This is for radio with images--> - <mat-form-field *ngIf="combinedProperties.columns !== undefined && combinedProperties.rows === undefined" - appearance="fill" class="wide-form-field"> - <mat-label>{{'preset' | translate }}</mat-label> - <mat-select [value]="combinedProperties.value" - (selectionChange)="updateModel.emit({ property: 'value', value: $event.value })"> - <mat-option [value]="null">{{'propertiesPanel.undefined' | translate }}</mat-option> - <mat-option *ngFor="let column of $any(combinedProperties.columns); let i = index" [value]="i"> - {{column.name}} (Index: {{i}}) + <div fxFlex fxFlexAlign="center" [innerHTML]="option.text + ' (Index: ' + i + ')'"></div> </mat-option> </mat-select> </mat-form-field>