This commit is contained in:
2021-09-09 18:43:27 +02:00
parent 204d2a27f2
commit 554a809ba4
3 changed files with 23 additions and 5 deletions

View File

@ -1,11 +1,24 @@
<section class="mat-typography">
<mat-card class="defaultCard" *ngIf="messageService.messages.length">
<mat-card class="defaultCard">
<mat-card-header>
<mat-card-title>Messages</mat-card-title>
</mat-card-header>
<mat-card-content>
<button (click)="messageService.clear()">clear</button>
<mat-accordion>
<mat-expansion-panel (opened)="collapse = true"
(closed)="collapse = false">
<mat-expansion-panel-header>
<mat-panel-title *ngIf="!collapse">
Übersicht
</mat-panel-title>
<mat-panel-description>
</mat-panel-description>
</mat-expansion-panel-header>
<button (click)="messageService.clear()">clear</button>
<div *ngFor='let message of messageService.messages'> {{message}} </div>
</mat-expansion-panel>
</mat-accordion>
</mat-card-content>
</mat-card>
</section>