1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-28 09:39:41 +02:00

bug/mobile-fixes (#426)

* search dialog rewrite

* lazy-load shopping list

* fit search bar

* event table

* set urls for static content

Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
Hayden 2021-05-24 20:28:14 -08:00 committed by GitHub
parent 475cafae49
commit 8f8127a5fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 326 additions and 289 deletions

View file

@ -1,6 +1,6 @@
<template>
<v-row>
<SearchDialog ref="mealselect" @select="setSlug" />
<SearchDialog ref="mealselect" @selected="setSlug" />
<BaseDialog
title="Custom Meal"
:title-icon="$globals.icons.primary"
@ -78,7 +78,7 @@
</template>
<script>
import SearchDialog from "../UI/Search/SearchDialog";
import SearchDialog from "../UI/Dialogs/SearchDialog";
import BaseDialog from "@/components/UI/Dialogs/BaseDialog";
import { api } from "@/api";
import CardImage from "../Recipe/CardImage.vue";
@ -129,13 +129,13 @@ export default {
this.value[this.activeIndex]["meals"][0]["name"] = name;
this.value[this.activeIndex]["meals"][0]["description"] = description;
},
setSlug(name, slug) {
setSlug(recipe) {
switch (this.mode) {
case this.modes.primary:
this.setPrimary(name, slug);
this.setPrimary(recipe.name, recipe.slug);
break;
default:
this.setSide(name, slug);
this.setSide(recipe.name, recipe.slug);
break;
}
},