From 2f1c5d42c49970a21fd35615e92427eac3657a88 Mon Sep 17 00:00:00 2001 From: vishnuraghavb Date: Tue, 29 Jun 2021 20:31:03 +0530 Subject: [PATCH] improved mark recipes as done --- app/components/EnRecipes.vue | 1 + app/components/ViewRecipe.vue | 104 +++++++++++++++++++--------------- app/store.ts | 14 ++--- 3 files changed, 65 insertions(+), 54 deletions(-) diff --git a/app/components/EnRecipes.vue b/app/components/EnRecipes.vue index 6da3e153..317c2068 100644 --- a/app/components/EnRecipes.vue +++ b/app/components/EnRecipes.vue @@ -608,6 +608,7 @@ export default { }, pgUnload() { if (this.shake) stopAccelerometerUpdates(); + this.releaseBackEvent(); }, abLoad({ object }) { this.appbar = object; diff --git a/app/components/ViewRecipe.vue b/app/components/ViewRecipe.vue index c6c628e2..92c4a2c0 100644 --- a/app/components/ViewRecipe.vue +++ b/app/components/ViewRecipe.vue @@ -66,7 +66,7 @@ :class="{ r: RTL }" > - + @@ -120,7 +120,7 @@ @@ -234,7 +234,7 @@ col="2" v-else class="ico" - :text="icon.done" + :text="recipeTried ? icon.try : icon.done" @tap="toggle('tried', 1)" />