mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 13:19:16 -05:00
fix get_facets_API
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -238,7 +238,7 @@ Vue.use(VueCookies)
|
|||||||
|
|
||||||
import { ApiMixin, ResolveUrlMixin } from "@/utils/utils"
|
import { ApiMixin, ResolveUrlMixin } from "@/utils/utils"
|
||||||
|
|
||||||
import LoadingSpinner from "@/components/LoadingSpinner" // is this deprecated?
|
import LoadingSpinner from "@/components/LoadingSpinner" // TODO: is this deprecated?
|
||||||
|
|
||||||
import RecipeCard from "@/components/RecipeCard"
|
import RecipeCard from "@/components/RecipeCard"
|
||||||
import GenericMultiselect from "@/components/GenericMultiselect"
|
import GenericMultiselect from "@/components/GenericMultiselect"
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ export const ApiMixin = {
|
|||||||
return {
|
return {
|
||||||
Models: Models,
|
Models: Models,
|
||||||
Actions: Actions,
|
Actions: Actions,
|
||||||
FoodCreateDefault: function(form) {
|
FoodCreateDefault: function (form) {
|
||||||
form.inherit_ignore = getUserPreference("food_ignore_default")
|
form.inherit_ignore = getUserPreference("food_ignore_default")
|
||||||
form.inherit = form.supermarket_category.length > 0
|
form.inherit = form.supermarket_category.length > 0
|
||||||
return form
|
return form
|
||||||
@@ -538,7 +538,7 @@ const specialCases = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const formFunctions = {
|
export const formFunctions = {
|
||||||
FoodCreateDefault: function(form) {
|
FoodCreateDefault: function (form) {
|
||||||
form.fields.filter((x) => x.field === "ignore_inherit")[0].value = getUserPreference("food_ignore_default")
|
form.fields.filter((x) => x.field === "ignore_inherit")[0].value = getUserPreference("food_ignore_default")
|
||||||
form.fields.filter((x) => x.field === "inherit")[0].value = getUserPreference("food_ignore_default").length > 0
|
form.fields.filter((x) => x.field === "inherit")[0].value = getUserPreference("food_ignore_default").length > 0
|
||||||
return form
|
return form
|
||||||
|
|||||||
Reference in New Issue
Block a user