mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-08 07:38:26 -05:00
check box linking
This commit is contained in:
@@ -479,7 +479,7 @@
|
|||||||
},
|
},
|
||||||
addStep: function () { //TODO see if default can be generated from options request
|
addStep: function () { //TODO see if default can be generated from options request
|
||||||
this.recipe.steps.push(
|
this.recipe.steps.push(
|
||||||
{'instruction': '', ingredients: [], type: 'TEXT'}
|
{'instruction': '', ingredients: [], type: 'TEXT', show_as_header: true}
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
sortSteps: function () {
|
sortSteps: function () {
|
||||||
|
|||||||
@@ -152,7 +152,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="vertical-align: middle!important;">
|
<td style="vertical-align: middle!important;">
|
||||||
<div class="pretty p-default p-curve">
|
<div class="pretty p-default p-curve">
|
||||||
<input type="checkbox"/>
|
<input type="checkbox" v-model="i.checked"/>
|
||||||
<div class="state p-success">
|
<div class="state p-success">
|
||||||
<label>
|
<label>
|
||||||
<template v-if="i.no_amount">
|
<template v-if="i.no_amount">
|
||||||
@@ -263,7 +263,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="vertical-align: middle!important;">
|
<td style="vertical-align: middle!important;">
|
||||||
<div class="pretty p-default p-curve">
|
<div class="pretty p-default p-curve">
|
||||||
<input type="checkbox"/>
|
<input type="checkbox" v-model="i.checked"/>
|
||||||
<div class="state p-success">
|
<div class="state p-success">
|
||||||
<label>
|
<label>
|
||||||
<template v-if="i.no_amount">
|
<template v-if="i.no_amount">
|
||||||
@@ -479,7 +479,9 @@
|
|||||||
for (let step of this.recipe.steps) {
|
for (let step of this.recipe.steps) {
|
||||||
if (step.ingredients.length > 0) {
|
if (step.ingredients.length > 0) {
|
||||||
this.has_ingredients = true
|
this.has_ingredients = true
|
||||||
return
|
}
|
||||||
|
for (let i of step.ingredients) {
|
||||||
|
this.$set(i, 'checked', false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user