Skip to content

Commit dc1e9f8

Browse files
authored
Merge pull request #226 from wp99cp/develop
Fix "nur Für Leitende" = 0 bug
2 parents 8b61c8c + 6ea68af commit dc1e9f8

File tree

6 files changed

+16
-6
lines changed

6 files changed

+16
-6
lines changed

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emeal/menuplanung",
3-
"version": "1.15.1",
3+
"version": "1.15.2",
44
"license": "MIT",
55
"copyrights": "© 2019 - 2024 Cevi Züri 11 - eMeal Menüplanung",
66
"scripts": {

frontend/src/app/modules/application-module/components/edit-recipe-in-camp/edit-recipe-in-camp.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ export class EditRecipeInCampComponent implements OnInit, Saveable, OnChanges {
272272
this.mealPart = SettingsService.calcRecipeParticipants(
273273
this.camp.participants,
274274
this.camp.vegetarians,
275+
this.camp.leaders,
275276
this.specificMeal.participants,
276277
specificRecipe.participants,
277278
this.specificMeal.overrideParticipants,

frontend/src/app/modules/application-module/dialoges/change-log/change-log.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
<h2>Neue Versionen - v1.15.1</h2>
1+
<h2>Neue Versionen - v1.15.2</h2>
22

33
<div mat-dialog-content>
44

55
<h3>Was gibt es neues in eMeal - Menüplanung? </h3>
66

7-
<p>Dieses Update fügt Neues hinzu:</p>
7+
<p>Dieses Update behebt einen Fehler:</p>
88

9-
<p class="news-element news-feature">
10-
Neuerdings gibt es auch den Menu-Typ "Dessert".
9+
<p class="news-element news-fixed">
10+
Bisher hat das Berechnen einer Mahlzeit nur für Leiter*innen nicht funktioniert. Dieser Fehler wurde behoben.
1111
</p>
1212

1313
</div>

frontend/src/app/modules/application-module/dialoges/recipe-info/recipe-info.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ <h3>Anzahl Teilnehmende</h3>
2626
{{calcRecipeParticipants(
2727
camp.participants,
2828
camp.vegetarians,
29+
camp.leaders,
2930
specificMeal.participants,
3031
this.recipeForm.get('overrideParticipants').value,
3132
specificMeal.overrideParticipants,

frontend/src/app/modules/application-module/services/settings.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export class SettingsService {
5454
public static calcRecipeParticipants(
5555
campPart: number,
5656
campVegis: number,
57+
campLeaders: number,
5758
mealPart: number,
5859
recipePart: number,
5960
mealOver: boolean,
@@ -74,7 +75,7 @@ export class SettingsService {
7475

7576
} else if (vegiState === 'leaders') {
7677

77-
return 0;
78+
return campLeaders;
7879
}
7980

8081
return calcRecipePart;

frontend/src/app/modules/change-log-module/components/version-history/version-history.component.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ <h2>Informationen zur aktuellen Version von eMeal.</h2>
66
Fehlerbehebungen.
77
</p>
88

9+
<h3>Neues in der Version 1.15.2 (1. Mai 2024)</h3>
10+
11+
<p class="news-element news-fixed">
12+
Bisher hat das Berechnen einer Mahlzeit nur für Leiter*innen nicht funktioniert. Dieser Fehler wurde behoben.
13+
</p>
14+
15+
916
<h3>Neues in der Version 1.15.1 (1. Mai 2024)</h3>
1017

1118
<p class="news-element news-feature">

0 commit comments

Comments
 (0)