fix view recipes in Model View

This commit is contained in:
Chris Scoggins
2022-02-01 11:38:11 -06:00
parent e05fd02c65
commit 583aee204e
2 changed files with 5 additions and 7 deletions

View File

@ -498,7 +498,7 @@
<div class="row">
<div class="col col-md-12">
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-gap: 0.8rem">
<template v-if="!searchFiltered()">
<template v-if="searchFiltered()">
<recipe-card v-bind:key="`mp_${m.id}`" v-for="m in meal_plans" :recipe="m.recipe" :meal_plan="m" :footer_text="m.meal_type_name" footer_icon="far fa-calendar-alt"></recipe-card>
</template>
<recipe-card v-for="r in recipes" v-bind:key="r.id" :recipe="r" :footer_text="isRecentOrNew(r)[0]" :footer_icon="isRecentOrNew(r)[1]"></recipe-card>
@ -694,7 +694,7 @@ export default {
const field = [
[this.$t("search_rank"), "score"],
[this.$t("Name"), "name"],
[this.$t("date_cooked"), "lastcooked"],
[this.$t("last_cooked"), "lastcooked"],
[this.$t("Rating"), "rating"],
[this.$t("times_cooked"), "favorite"],
[this.$t("date_created"), "created_at"],
@ -1031,8 +1031,6 @@ export default {
this.search.makenow !== false ||
(this.search.lastcooked !== undefined && this.search.lastcooked !== "")
console.log()
if (ignore_string) {
return filtered
} else {