Skip to content
Snippets Groups Projects
Commit dde935e3 authored by rhenck's avatar rhenck
Browse files

[editor] Fix (preselected) value selection for radio-group-images

Now correctly shows a dropdown instead of a text area.
parent 77a896f5
No related branches found
No related tags found
No related merge requests found
......@@ -160,6 +160,18 @@
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="combinedProperties.columns !== undefined"
appearance="fill">
<mat-label>{{'propertiesPanel.preset' | translate }}</mat-label>
<mat-select [value]="combinedProperties.value"
(selectionChange)="updateModel('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}})
</mat-option>
</mat-select>
</mat-form-field>
<ng-container *ngIf="combinedProperties.value === true || combinedProperties.value === false">
{{'propertiesPanel.preset' | translate }}
<mat-button-toggle-group [value]="combinedProperties.value"
......@@ -169,8 +181,9 @@
</mat-button-toggle-group>
</ng-container>
<mat-form-field *ngIf="combinedProperties.value !== undefined && !combinedProperties.options &&
combinedProperties.value !== true && combinedProperties.value !== false"
<mat-form-field *ngIf="combinedProperties.value !== undefined &&
!combinedProperties.options && !combinedProperties.columns &&
combinedProperties.value !== true && combinedProperties.value !== false"
appearance="fill">
<mat-label>{{'propertiesPanel.preset' | translate }}</mat-label>
<textarea matInput type="text"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment