WIP
This commit is contained in:
@ -435,7 +435,7 @@ export default {
|
|||||||
getRecipes: function (col, item) {
|
getRecipes: function (col, item) {
|
||||||
let parent = {}
|
let parent = {}
|
||||||
// TODO: make this generic
|
// TODO: make this generic
|
||||||
let params = { pageSize: 50 }
|
let params = { pageSize: 50, random: true }
|
||||||
params[this.this_recipe_param] = item.id
|
params[this.this_recipe_param] = item.id
|
||||||
console.log("RECIPE PARAM", this.this_recipe_param, params, item.id)
|
console.log("RECIPE PARAM", this.this_recipe_param, params, item.id)
|
||||||
this.genericAPI(this.Models.RECIPE, this.Actions.LIST, params)
|
this.genericAPI(this.Models.RECIPE, this.Actions.LIST, params)
|
||||||
|
@ -396,6 +396,7 @@ export default {
|
|||||||
if (!this.searchFiltered) {
|
if (!this.searchFiltered) {
|
||||||
params.options = { query: { last_viewed: this.settings.recently_viewed } }
|
params.options = { query: { last_viewed: this.settings.recently_viewed } }
|
||||||
}
|
}
|
||||||
|
console.log(params)
|
||||||
this.genericAPI(this.Models.RECIPE, this.Actions.LIST, params).then((result) => {
|
this.genericAPI(this.Models.RECIPE, this.Actions.LIST, params).then((result) => {
|
||||||
window.scrollTo(0, 0)
|
window.scrollTo(0, 0)
|
||||||
this.pagination_count = result.data.count
|
this.pagination_count = result.data.count
|
||||||
|
Reference in New Issue
Block a user