Skip to content

Commit

Permalink
#837 - Fixing calculcation functions
Browse files Browse the repository at this point in the history
  • Loading branch information
graphefruit committed Nov 10, 2024
1 parent b210cac commit 038fc87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/brews/brew-brewing/brew-brewing.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
<ion-item class="ion-no-margin-important" lines='none'>
<ion-label id='brew_quantity' position="stacked">
<h2>{{"BREW_DATA_BREW_QUANTITY" | translate}}</h2>
<p style="top: -7px; position: relative;">({{data | brewFunctionPipe: BREW_FUNCTION_PIPE_ENUM.GET_BREW_RATIO}} , {{data | brewFunctionPipe: BREW_FUNCTION_PIPE_ENUM.GET_GRAMS_PER_LITER}})</p>
<p style="top: -7px; position: relative;">({{data | brewFunctionPipe: [BREW_FUNCTION_PIPE_ENUM.GET_BREW_RATIO,data.brew_beverage_quantity,data.brew_quantity,data.grind_weight]}} , {{data | brewFunctionPipe: [BREW_FUNCTION_PIPE_ENUM.GET_GRAMS_PER_LITER,data.brew_beverage_quantity,data.brew_quantity,data.grind_weight]}})</p>
</ion-label>
<ion-input aria-labelledby='brew_quantity' [(ngModel)]="data.brew_quantity" inputmode="decimal"
placeholder="{{'BREW.PLACE_HOLDER.BREW_DATA_BREW_QUANTITY' | translate}}" prevent-characters
Expand Down Expand Up @@ -403,7 +403,7 @@ <h2>{{"BREW_DATA_BREW_QUANTITY" | translate}}</h2>
<h2>{{"BREW_DATA_BREW_BEVERAGE_QUANTITY" | translate}}</h2>
<p style="top: -7px; position: relative;"
*ngIf="choosenPreparation.style_type === PREPARATION_STYLE_TYPE.ESPRESSO || (data.brew_quantity <=0 && data.brew_beverage_quantity >0)">
({{data | brewFunctionPipe: BREW_FUNCTION_PIPE_ENUM.GET_BREW_RATIO}} , {{data | brewFunctionPipe: BREW_FUNCTION_PIPE_ENUM.GET_GRAMS_PER_LITER}})</p>
({{data | brewFunctionPipe: [BREW_FUNCTION_PIPE_ENUM.GET_BREW_RATIO,data.brew_beverage_quantity,data.brew_quantity,data.grind_weight]}} , {{data | brewFunctionPipe: [BREW_FUNCTION_PIPE_ENUM.GET_GRAMS_PER_LITER,data.brew_beverage_quantity,data.brew_quantity,data.grind_weight]}})</p>
</ion-label>
<ion-input aria-labelledby='brew_beverage_quantity' [(ngModel)]="data.brew_beverage_quantity" inputmode="decimal"
placeholder="{{'BREW.PLACE_HOLDER.BREW_DATA_BREW_BEVERAGE_QUANTITY' | translate}}" prevent-characters
Expand Down

0 comments on commit 038fc87

Please sign in to comment.