check box linking

This commit is contained in:
vabene1111
2020-07-02 12:15:30 +02:00
parent 1619d4894c
commit 98f9555ef6
2 changed files with 6 additions and 4 deletions

View File

@@ -479,7 +479,7 @@
},
addStep: function () { //TODO see if default can be generated from options request
this.recipe.steps.push(
{'instruction': '', ingredients: [], type: 'TEXT'}
{'instruction': '', ingredients: [], type: 'TEXT', show_as_header: true}
)
},
sortSteps: function () {

View File

@@ -152,7 +152,7 @@
<tr>
<td style="vertical-align: middle!important;">
<div class="pretty p-default p-curve">
<input type="checkbox"/>
<input type="checkbox" v-model="i.checked"/>
<div class="state p-success">
<label>
<template v-if="i.no_amount">
@@ -263,7 +263,7 @@
<tr>
<td style="vertical-align: middle!important;">
<div class="pretty p-default p-curve">
<input type="checkbox"/>
<input type="checkbox" v-model="i.checked"/>
<div class="state p-success">
<label>
<template v-if="i.no_amount">
@@ -479,7 +479,9 @@
for (let step of this.recipe.steps) {
if (step.ingredients.length > 0) {
this.has_ingredients = true
return
}
for (let i of step.ingredients) {
this.$set(i, 'checked', false)
}
}