diff --git a/docs/docs/overrides/api.html b/docs/docs/overrides/api.html index 8d1f2e77add8..62decc3f868f 100644 --- a/docs/docs/overrides/api.html +++ b/docs/docs/overrides/api.html @@ -14,7 +14,7 @@
diff --git a/frontend/src/api/recipe.js b/frontend/src/api/recipe.js index 42d5c47eb889..c86e5b4cf42c 100644 --- a/frontend/src/api/recipe.js +++ b/frontend/src/api/recipe.js @@ -2,7 +2,6 @@ import { baseURL } from "./api-utils"; import { apiReq } from "./api-utils"; import { store } from "../store"; import { router } from "../main"; -import qs from "qs"; const prefix = baseURL + "recipes/"; @@ -78,22 +77,10 @@ export const recipeAPI = { router.push(`/`); }, - async allByKeys(recipeKeys, num = 9999) { - const response = await apiReq.get(recipeURLs.allRecipes, { - params: { - keys: recipeKeys, - num: num, - }, - paramsSerializer: params => { - return qs.stringify(params, { arrayFormat: "repeat" }); - }, + async allSummary(start = 0, limit = 9999) { + const response = await apiReq.get(recipeURLs.summary, { + params: { start: start, limit: limit }, }); - - return response.data; - }, - - async allSummary() { - const response = await apiReq.get(recipeURLs.summary); return response.data; }, diff --git a/frontend/src/components/ImportSummaryDialog/index.vue b/frontend/src/components/ImportSummaryDialog/index.vue index c41aa912e4d9..5088e1491950 100644 --- a/frontend/src/components/ImportSummaryDialog/index.vue +++ b/frontend/src/components/ImportSummaryDialog/index.vue @@ -45,7 +45,7 @@ diff --git a/frontend/src/components/UI/Search/SearchBar.vue b/frontend/src/components/UI/Search/SearchBar.vue index a2e055d2a386..776a913bd743 100644 --- a/frontend/src/components/UI/Search/SearchBar.vue +++ b/frontend/src/components/UI/Search/SearchBar.vue @@ -89,7 +89,6 @@ export default { searchSlug: "", search: "", menuModel: false, - data: [], result: [], fuseResults: [], isDark: false, @@ -107,9 +106,12 @@ export default { }, mounted() { this.isDark = this.$store.getters.getIsDark; - this.data = this.$store.getters.getRecentRecipes; + this.$store.dispatch("requestAllRecipes"); }, computed: { + data() { + return this.$store.getters.getRecentRecipes; + }, autoResults() { return this.fuseResults.length > 1 ? this.fuseResults : this.results; }, diff --git a/frontend/src/pages/Admin/MealPlanner/index.vue b/frontend/src/pages/Admin/MealPlanner/index.vue index 2f13cfb7d791..3e03abdffd15 100644 --- a/frontend/src/pages/Admin/MealPlanner/index.vue +++ b/frontend/src/pages/Admin/MealPlanner/index.vue @@ -135,7 +135,6 @@ export default { this.groupSettings.webhookUrls.splice(index, 1); }, async saveGroupSettings() { - console.log(this.groupSettings); await api.groups.update(this.groupSettings); await this.$store.dispatch("requestCurrentGroup"); this.getSiteSettings(); diff --git a/frontend/src/pages/Admin/Migration/MigrationDialog.vue b/frontend/src/pages/Admin/Migration/MigrationDialog.vue index 485f2baf746e..478a92ac99c1 100644 --- a/frontend/src/pages/Admin/Migration/MigrationDialog.vue +++ b/frontend/src/pages/Admin/Migration/MigrationDialog.vue @@ -42,7 +42,7 @@