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

Rename alignment options for radio groups

Use 'horizontal' and 'vertical'. Which are better terms and also align 
with other element's values.
parent 548714cb
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ import { initFontElement, initSurfaceElement } from '../util/unit-interface-init ...@@ -4,7 +4,7 @@ import { initFontElement, initSurfaceElement } from '../util/unit-interface-init
export class RadioButtonGroupElement extends InputElement implements FontElement, SurfaceUIElement { export class RadioButtonGroupElement extends InputElement implements FontElement, SurfaceUIElement {
options: string[] = []; options: string[] = [];
alignment: 'row' | 'column' = 'column'; alignment: 'vertical' | 'horizontal' = 'vertical';
strikeOtherOptions: boolean = false; strikeOtherOptions: boolean = false;
fontColor: string = 'black'; fontColor: string = 'black';
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<mat-label>{{'propertiesPanel.alignment' | translate }}</mat-label> <mat-label>{{'propertiesPanel.alignment' | translate }}</mat-label>
<mat-select [value]="combinedProperties.alignment" <mat-select [value]="combinedProperties.alignment"
(selectionChange)="updateModel('alignment', $event.value)"> (selectionChange)="updateModel('alignment', $event.value)">
<mat-option *ngFor="let option of ['row', 'column']" <mat-option *ngFor="let option of ['horizontal', 'vertical']"
[value]="option"> [value]="option">
{{ 'propertiesPanel.' + option | translate }} {{ 'propertiesPanel.' + option | translate }}
</mat-option> </mat-option>
......
...@@ -71,8 +71,8 @@ ...@@ -71,8 +71,8 @@
"requiredField": "Pflichtfeld", "requiredField": "Pflichtfeld",
"requiredWarnMessage": "Warnmeldung", "requiredWarnMessage": "Warnmeldung",
"options": "Optionen", "options": "Optionen",
"alignmentRow": "horizontal", "vertical": "vertikal",
"alignmentColumn": "vertikal", "horizontal": "horizontal",
"resizeEnabled": "größenverstellbar", "resizeEnabled": "größenverstellbar",
"action": "Aktion", "action": "Aktion",
"previous": "Vorherige Unit", "previous": "Vorherige Unit",
......
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