@@ -255,11 +217,6 @@
class="fas fa-calendar-plus"> {{ $t("Create") }}
-
-
-
@@ -448,27 +405,6 @@ export default {
openRecipe: function (recipe) {
window.open(this.resolveDjangoUrl("view_recipe", recipe.id))
},
- addToShopping(entry) {
- if (entry.originalItem.entry.recipe !== null) {
- this.shopping_list.push(entry.originalItem.entry)
- makeToast(this.$t("Success"), this.$t("Added_To_Shopping_List"), "success")
- } else {
- makeToast(this.$t("Failure"), this.$t("Cannot_Add_Notes_To_Shopping"), "danger")
- }
- },
- saveShoppingList() {
- let url = window.SHOPPING_URL
- let first = true
- for (let se of this.shopping_list) {
- if (first) {
- url += `?r=[${se.recipe.id},${se.servings}]`
- first = false
- } else {
- url += `&r=[${se.recipe.id},${se.servings}]`
- }
- }
- window.open(url)
- },
setStartingDay(days) {
if (this.settings.startingDayOfWeek + days < 0) {
this.settings.startingDayOfWeek = 6