Revert "Add Setting to enable / disable feature"

This reverts commit 768e9f8801.
This commit is contained in:
Patrick Magauran
2024-02-13 20:30:59 -05:00
parent 768e9f8801
commit a9a3dd6e51
4 changed files with 1 additions and 16 deletions

View File

@@ -298,7 +298,6 @@ export default {
displayPeriodCount: 2,
startingDayOfWeek: 1,
displayWeekNumbers: true,
autoLoadServings: true,
},
dragged_item: null,
meal_types: [],
@@ -395,13 +394,7 @@ export default {
methods: {
getRecipeURL: function (recipe, servings) {
let slug
if (this.settings.autoLoadServings) {
slug = `${recipe.id}-${servings}`
} else {
slug = recipe.id
}
return this.resolveDjangoUrl("view_recipe",slug)
return this.resolveDjangoUrl("view_recipe",`${recipe.id}-${servings}`)
},
openRecipe: function (recipe, servings) {