mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-06 22:58:19 -05:00
fixed step rendering logic
This commit is contained in:
@@ -128,7 +128,7 @@
|
|||||||
</v-card>
|
</v-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<v-card class="mt-1" v-if="recipe.steps.length > 1 && recipe.showIngredientOverview">
|
<v-card class="mt-1" v-if="(recipe.steps.length > 1 || (recipe.steps.length == 1 && !recipe.steps[0].showIngredientsTable)) && recipe.showIngredientOverview">
|
||||||
<steps-overview :steps="recipe.steps" :ingredient-factor="ingredientFactor"></steps-overview>
|
<steps-overview :steps="recipe.steps" :ingredient-factor="ingredientFactor"></steps-overview>
|
||||||
</v-card>
|
</v-card>
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<timer :seconds="step.time != undefined ? step.time*60 : 0" @stop="timerRunning = false" v-if="timerRunning"></timer>
|
<timer :seconds="step.time != undefined ? step.time*60 : 0" @stop="timerRunning = false" v-if="timerRunning"></timer>
|
||||||
<v-card-text v-if="step.ingredients.length > 0 || step.instruction != ''">
|
<v-card-text v-if="step.ingredients.length > 0 || step.instruction != ''">
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="12" md="6" v-if="step.ingredients.length > 0">
|
<v-col cols="12" md="6" v-if="step.ingredients.length > 0 && step.showIngredientsTable">
|
||||||
<ingredients-table v-model="step.ingredients" :ingredient-factor="ingredientFactor"></ingredients-table>
|
<ingredients-table v-model="step.ingredients" :ingredient-factor="ingredientFactor"></ingredients-table>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" md="6" class="markdown-body">
|
<v-col cols="12" md="6" class="markdown-body">
|
||||||
|
|||||||
Reference in New Issue
Block a user