Skip to content
Snippets Groups Projects
Commit fef84b4f authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Show badge only if there are comments

parent 97b98abc
No related merge requests found
......@@ -14,8 +14,8 @@
<!-- filter input -->
<mat-form-field *ngIf="this.rooms && this.rooms.length > 5" class="filterWrapper">
<input (focus)="eventService.makeFocusOnInputTrue()" (blur)="eventService.makeFocusOnInputFalse()" matInput (keyup)="applyFilter($event.target.value)"
class="filter"
<input (focus)="eventService.makeFocusOnInputTrue()" (blur)="eventService.makeFocusOnInputFalse()" matInput
(keyup)="applyFilter($event.target.value)" class="filter"
attr.aria-labelledby="sessionHistoryLabel{{ this.rooms.length === 1 ? '1' : '' }}"/>
<mat-placeholder class="placeholder">{{ 'room-list.filter-message' | translate }}</mat-placeholder>
</mat-form-field>
......@@ -29,7 +29,9 @@
{{ 'room-list.panel-session-name' | translate }}
</th>
<td mat-cell *matCellDef="let room">
<span matBadge="{{room.commentCount}}" matBadgeOverlap="false">{{ room.name }}</span>
<span matBadge="{{room.commentCount > 0 ? room.commentCount : null}}" matBadgeOverlap="false">
{{ room.name }}
</span>
</td>
</ng-container>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment