Skip to content
Snippets Groups Projects
Commit 69432b5f authored by paflov's avatar paflov
Browse files

improve error handling in case of could not load player

parent 991f1c62
No related branches found
No related tags found
No related merge requests found
......@@ -64,13 +64,13 @@
</table>
</mat-card-content>
<label>Export Your Report
<textarea style="width:100%; height: 8em" *ngIf="csvReport">{{csvReport}}</textarea>
<label *ngIf="csvReport">Export als CSV für Copy&Paste
<textarea style="width:100%; height: 8em">{{csvReport}}</textarea>
</label>
<mat-card-actions>
<button *ngIf="canSave && isReady()" mat-raised-button color="primary" (click)="saveReport()" class="save_button">Senden</button>
<button *ngIf="canSave && isReady()" mat-raised-button (click)="exportReport()" class="save_button">Als CSV zum kopieren</button>
<button *ngIf="isReady()" mat-raised-button (click)="exportReport()" class="save_button">Als CSV zum kopieren</button>
</mat-card-actions>
</mat-card>
......
......@@ -153,7 +153,7 @@ export class UnitCheckComponent implements OnInit, OnDestroy {
{id: '0', type: 'unit/player', label: 'loading error', value: errorText + '\n' + player.labelSystem, warning: true}
]);
this.dataLoading = false;
throw new Error(player.labelSystem);
return '';
}
if (player.value.length === 0) {
......@@ -165,7 +165,7 @@ export class UnitCheckComponent implements OnInit, OnDestroy {
{id: '0', type: 'unit/player', label: 'loading time', value: player.duration.toString(), warning: false}
]);
this.dataLoading = false;
throw new Error('Error at: ' + errorText);
return '';
}
this.ds.unitData$.next([
......
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