Uses new IngredientListManager :)

This commit is contained in:
2019-02-03 21:42:45 +01:00
parent b14e566593
commit bcc0564f2a
5 changed files with 44 additions and 36 deletions

View File

@@ -19,7 +19,10 @@
<button @click="closeActiveView" class="button is-pulled-right">X close</button>
<h4 class="title">{{ items[active_view].title }}</h4>
<h6 class="subtitle">{{ categories[items[active_view].category].name }}</h6>
<p><strong>{{ items[active_view].ingredients }}</strong></p>
<p><strong>Ingredients : </strong></p>
<ul>
<li v-for="ing in items[active_view].ingredients.split('\n')">{{ ing }}</li>
</ul>
<button @click="deleteRecipe(items[active_view].id)" class="button is-danger is-pulled-right">DELETE !</button>
</div>
</section>