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

[editor] Fix hidden autoStartDelay property

The player-element dialog options did not show the field, even when it 
has a value. Now it properly checks of the existing config has this set.
parent 4dda125e
No related branches found
No related tags found
No related merge requests found
...@@ -211,7 +211,7 @@ export class RichTextEditDialog { ...@@ -211,7 +211,7 @@ export class RichTextEditDialog {
(change)="newPlayerConfig.autostart = $event.checked"> (change)="newPlayerConfig.autostart = $event.checked">
{{ 'player.autoStart' | translate }} {{ 'player.autoStart' | translate }}
</mat-checkbox> </mat-checkbox>
<mat-form-field *ngIf="newPlayerConfig.autostart" appearance="fill"> <mat-form-field *ngIf="newPlayerConfig.autostart || data.player.autostart" appearance="fill">
<mat-label>{{ 'player.autoStartDelay' | translate }}</mat-label> <mat-label>{{ 'player.autoStartDelay' | translate }}</mat-label>
<input matInput type="number" step="1000" <input matInput type="number" step="1000"
[value]="newPlayerConfig.autostartDelay || data.player.autostartDelay" [value]="newPlayerConfig.autostartDelay || data.player.autostartDelay"
......
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