Revert "Add Setting to enable / disable feature"
This reverts commit 768e9f8801
.
This commit is contained in:
parent
768e9f8801
commit
a9a3dd6e51
@ -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) {
|
||||
|
@ -35,11 +35,6 @@
|
||||
{{ $t("Show_Week_Numbers") }}
|
||||
</b-form-checkbox>
|
||||
</b-form-group>
|
||||
<b-form-group id="AutoServingsInput" :label="$t('Auto_Servings')">
|
||||
<b-form-checkbox v-model="settings.autoLoadServings" name="auto_servings">
|
||||
{{ $t("Auto_Link_servings") }}
|
||||
</b-form-checkbox>
|
||||
</b-form-group>
|
||||
</b-form>
|
||||
|
||||
<hr/>
|
||||
|
@ -264,8 +264,6 @@
|
||||
"Add_Servings_to_Shopping": "Add {servings} Servings to Shopping",
|
||||
"Week_Numbers": "Week numbers",
|
||||
"Show_Week_Numbers": "Show week numbers ?",
|
||||
"Auto_Servings": "Servings Link",
|
||||
"Auto_Link_servings": "Open Recipes with number of servings specified in plan ?",
|
||||
"Export_As_ICal": "Export current period to iCal format",
|
||||
"Export_To_ICal": "Export .ics",
|
||||
"Cannot_Add_Notes_To_Shopping": "Notes cannot be added to the shopping list",
|
||||
|
@ -108,7 +108,6 @@ export const useMealPlanStore = defineStore(_STORE_ID, {
|
||||
displayPeriodCount: 3,
|
||||
startingDayOfWeek: 1,
|
||||
displayWeekNumbers: true,
|
||||
autoLoadServings: true,
|
||||
}
|
||||
} else {
|
||||
return JSON.parse(s)
|
||||
|
Loading…
Reference in New Issue
Block a user