diff --git a/frontend/src/pages/Admin/MealPlanner/index.vue b/frontend/src/pages/Admin/MealPlanner/index.vue deleted file mode 100644 index 51461f5ba..000000000 --- a/frontend/src/pages/Admin/MealPlanner/index.vue +++ /dev/null @@ -1,137 +0,0 @@ - - - - - diff --git a/frontend/src/pages/Admin/Profile/APITokenCard.vue b/frontend/src/pages/Admin/Profile/APITokenCard.vue index c31ff7ca2..3855c03b7 100644 --- a/frontend/src/pages/Admin/Profile/APITokenCard.vue +++ b/frontend/src/pages/Admin/Profile/APITokenCard.vue @@ -53,7 +53,7 @@ USERS - + + +
+

+ + mdi-food-variant + + Mealplan Settings +

+
+ + + MEALPLAN CATEGORIES + + {{ $t("meal-plan.only-recipes-with-these-categories-will-be-used-in-meal-plans") }} + + + + + WEBHOOKS + + {{ + $t( + "settings.webhooks.the-urls-listed-below-will-recieve-webhooks-containing-the-recipe-data-for-the-meal-plan-on-its-scheduled-day-currently-webhooks-will-execute-at" + ) + }} + {{ groupSettings.webhookTime }} + + + + + + + + + + + + mdi-webhook + New + + + + + + + + mdi-webhook + {{ $t("settings.webhooks.test-webhooks") }} + + + + mdi-content-save + {{ $t("general.update") }} + + diff --git a/frontend/src/pages/Admin/Profile/index.vue b/frontend/src/pages/Admin/Profile/index.vue index 88127c2a8..e6cfa1a38 100644 --- a/frontend/src/pages/Admin/Profile/index.vue +++ b/frontend/src/pages/Admin/Profile/index.vue @@ -4,10 +4,10 @@ + - diff --git a/frontend/src/pages/Recipes/CategoryPage.vue b/frontend/src/pages/Recipes/CategoryPage.vue index 2d0acf225..89818210f 100644 --- a/frontend/src/pages/Recipes/CategoryPage.vue +++ b/frontend/src/pages/Recipes/CategoryPage.vue @@ -1,13 +1,6 @@ @@ -22,20 +15,30 @@ export default { return { title: "", recipes: [], + sortedResults: [], }; }, computed: { currentCategory() { return this.$route.params.category; }, + shownRecipes() { + if (this.sortedResults.length > 0) { + return this.sortedResults; + } else { + return this.recipes; + } + }, }, watch: { async currentCategory() { + this.sortedResults = []; this.getRecipes(); }, }, mounted() { this.getRecipes(); + this.sortedResults = []; }, methods: { async getRecipes() { @@ -43,11 +46,8 @@ export default { this.title = data.name; this.recipes = data.recipes; }, - sortAZ() { - this.recipes.sort((a, b) => (a.name > b.name ? 1 : -1)); - }, - sortRecent() { - this.recipes.sort((a, b) => (a.dateAdded > b.dateAdded ? -1 : 1)); + assignSorted(val) { + this.sortedResults = val.slice(); }, }, }; diff --git a/frontend/src/pages/Recipes/CustomPage.vue b/frontend/src/pages/Recipes/CustomPage.vue index 91d2bbe82..ad6f6003a 100644 --- a/frontend/src/pages/Recipes/CustomPage.vue +++ b/frontend/src/pages/Recipes/CustomPage.vue @@ -1,24 +1,23 @@