-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: canteen days when previous day is empty
- Loading branch information
Showing
2 changed files
with
29 additions
and
10 deletions.
There are no files selected for viewing
14 changes: 7 additions & 7 deletions
14
apps/frontend/src/app/modules/canteen/components/canteen/canteen.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<h2>Menza étlap</h2> | ||
<ng-container *ngFor="let week of [0, 1]"> | ||
<span class="menu-header">{{ week_prefixes[week] }}</span> | ||
<div class="day" *ngFor="let day of [0,1,2,3,4]"> | ||
<span class="day-name">{{ weekdays[day] }}</span> | ||
<ng-container *ngIf="(canteen | async)?.[week][day] as thisDay"> | ||
<span class="food" *ngFor="let meal of thisDay.menus">{{ meal.menu }}</span> | ||
</ng-container> | ||
</div> | ||
<span class="menu-header">{{ week_prefixes[week] }}</span> | ||
<div class="day" *ngFor="let day of [0, 1, 2, 3, 4]"> | ||
<span class="day-name">{{ weekdays[day] }}</span> | ||
<ng-container *ngIf="days[day + week * 5] | async as thisDayMenu"> | ||
<span class="food" *ngFor="let meal of thisDayMenu">{{ meal.menu }}</span> | ||
</ng-container> | ||
</div> | ||
</ng-container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters