WIP
This commit is contained in:
@ -145,7 +145,7 @@ export default {
|
|||||||
return this.genericAPI(this.Models.RECIPE, this.Actions.LIST, params).then((results) => {
|
return this.genericAPI(this.Models.RECIPE, this.Actions.LIST, params).then((results) => {
|
||||||
let recipes = results.data.results.map((x) => {
|
let recipes = results.data.results.map((x) => {
|
||||||
return {
|
return {
|
||||||
id: x.id,
|
id: (Math.random() * 1999) ^ 1999,
|
||||||
book: book.id,
|
book: book.id,
|
||||||
book_content: book,
|
book_content: book,
|
||||||
recipe: x.id,
|
recipe: x.id,
|
||||||
|
@ -521,10 +521,11 @@
|
|||||||
import Vue from "vue"
|
import Vue from "vue"
|
||||||
import { BootstrapVue } from "bootstrap-vue"
|
import { BootstrapVue } from "bootstrap-vue"
|
||||||
import VueCookies from "vue-cookies"
|
import VueCookies from "vue-cookies"
|
||||||
|
|
||||||
import "bootstrap-vue/dist/bootstrap-vue.css"
|
import "bootstrap-vue/dist/bootstrap-vue.css"
|
||||||
|
|
||||||
import moment from "moment"
|
import moment from "moment"
|
||||||
import _debounce from "lodash/debounce"
|
import _debounce from "lodash/debounce"
|
||||||
|
import Multiselect from "vue-multiselect"
|
||||||
import { Treeselect, LOAD_CHILDREN_OPTIONS } from "@riophae/vue-treeselect"
|
import { Treeselect, LOAD_CHILDREN_OPTIONS } from "@riophae/vue-treeselect"
|
||||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css"
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css"
|
||||||
|
|
||||||
@ -533,7 +534,6 @@ import LoadingSpinner from "@/components/LoadingSpinner" // TODO: is this deprec
|
|||||||
import RecipeCard from "@/components/RecipeCard"
|
import RecipeCard from "@/components/RecipeCard"
|
||||||
import GenericMultiselect from "@/components/GenericMultiselect"
|
import GenericMultiselect from "@/components/GenericMultiselect"
|
||||||
import RecipeSwitcher from "@/components/Buttons/RecipeSwitcher"
|
import RecipeSwitcher from "@/components/Buttons/RecipeSwitcher"
|
||||||
import Multiselect from "vue-multiselect"
|
|
||||||
|
|
||||||
Vue.use(VueCookies)
|
Vue.use(VueCookies)
|
||||||
Vue.use(BootstrapVue)
|
Vue.use(BootstrapVue)
|
||||||
|
Reference in New Issue
Block a user