Skip to content
Snippets Groups Projects
Commit 11143e57 authored by jojohoch's avatar jojohoch
Browse files

[editor] Fix default value for likert row

#610
parent 6c04f088
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ Editor
### Fehlerbehebungen
- Legt für Kinderelemente von Optionstabellen und Lückentexten beim Einfügen von kopierten Abschnitten neue IDs an. verhindert damit den Fehler "Doppelte Ids"
- Korrigiert die Vorauswahl bei Optionstabellen
### Änderungen
- Überarbeitung des Optionsdialogs für Ablegelisten
......
......@@ -13,7 +13,6 @@ import { VariableInfo, VariableValue } from '@iqb/responses';
export class LikertRowElement extends InputElement implements LikertRowProperties {
type: UIElementType = 'likert-row';
value: number | null = null;
rowLabel: TextImageLabel = { text: '', imgSrc: null, imgPosition: 'above' };
columnCount: number = 0;
firstColumnSizeRatio: number = 5;
......
......@@ -2,8 +2,6 @@ import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { FileService } from 'common/services/file.service';
import { LikertRowElement } from 'common/models/elements/compound-elements/likert/likert-row';
import { TextLabel } from 'common/models/elements/label-interfaces';
@Component({
......@@ -28,7 +26,7 @@ import { TextLabel } from 'common/models/elements/label-interfaces';
<mat-select [(ngModel)]="newLikertRow.value">
<mat-select-trigger
[innerHTML]="newLikertRow.value !== null ?
'<span>' + data.options[newLikertRow.value].text + '</span>' : 'undefiniert' | safeResourceHTML">
'<span>' + data.options[$any(newLikertRow.value)].text + '</span>' : 'undefiniert' | safeResourceHTML">
</mat-select-trigger>
<mat-option [value]="null">{{'propertiesPanel.undefined' | translate }}</mat-option>
<mat-option *ngFor="let column of data.options; let i = index" [value]="i"
......
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