Skip to content

Commit

Permalink
Add data type conversions for serving number
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Wolf <github@christianwolf.email>
  • Loading branch information
christianlupus committed Dec 3, 2023
1 parent e9673ad commit 9a4a027
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/RecipeEdit.vue
Expand Up @@ -59,10 +59,11 @@
@tag="addKeyword"
/>
<EditInputField
v-model="recipe['recipeYield']"
:value="String(recipe['recipeYield'])"
:field-type="'number'"
:field-label="t('cookbook', 'Servings')"
:hide="!showRecipeYield"
@input="recipe['recipeYield'] = Number($event)"
>
<NcActions>
<NcActionButton
Expand Down

0 comments on commit 9a4a027

Please sign in to comment.