implemented some missing settings

This commit is contained in:
vabene1111
2025-06-06 15:42:39 +02:00
parent 23c4c2e543
commit ec0bc43c21
39 changed files with 115 additions and 24 deletions

View File

@@ -117,7 +117,7 @@
<external-recipe-viewer :recipe="recipe"></external-recipe-viewer>
</template>
<template v-else>
<v-card class="mt-1" v-if="recipe.steps.length > 1">
<v-card class="mt-1" v-if="recipe.steps.length > 1 && recipe.showIngredientOverview">
<steps-overview :steps="recipe.steps" :ingredient-factor="ingredientFactor"></steps-overview>
</v-card>
@@ -170,7 +170,7 @@
</v-card-text>
</v-card>
<recipe-activity :recipe="recipe"></recipe-activity>
<recipe-activity :recipe="recipe" v-if="useUserPreferenceStore().userSettings.comments"></recipe-activity>
</template>
</template>
@@ -189,6 +189,7 @@ import {useMediaQuery, useWakeLock} from "@vueuse/core";
import StepView from "@/components/display/StepView.vue";
import {DateTime} from "luxon";
import PropertyView from "@/components/display/PropertyView.vue";
import {useUserPreferenceStore} from "@/stores/UserPreferenceStore.ts";
const {request, release} = useWakeLock()
const isPrintMode = useMediaQuery('print')

View File

@@ -31,7 +31,7 @@
</div>
</div>
<template #append>
<template v-slot:[checkBtnSlot]>
<v-btn color="success" @click.native.stop="useShoppingStore().setEntriesCheckedState(entries, !isChecked, true);"
:class="{'btn-success': !isChecked, 'btn-warning': isChecked}" :icon="actionButtonIcon" variant="plain">
</v-btn>
@@ -66,6 +66,7 @@ const props = defineProps({
shoppingListFood: {type: {} as PropType<IShoppingListFood>, required: true},
hideInfoRow: {type: Boolean, default: false}
})
const checkBtnSlot = ref(useUserPreferenceStore().userSettings.leftHanded ? 'prepend' : 'append')
const dialog = ref(false)

View File

@@ -22,6 +22,13 @@
<v-list-item prepend-icon="fas fa-plus-circle" @click="showFile = true" v-if="!showFile && step.file == null">{{ $t('File') }}</v-list-item>
<v-list-item prepend-icon="fas fa-plus-circle" @click="showRecipe = true" v-if="!showRecipe && step.stepRecipe == null">{{ $t('Recipe') }}</v-list-item>
<v-list-item link>
<v-switch v-model="step.showIngredientsTable" :label="$t('ShowIngredients')" hide-details></v-switch>
</v-list-item>
<v-list-item link>
<v-switch v-model="step.showAsHeader" :label="$t('Show_as_header')" hide-details></v-switch>
</v-list-item>
<v-list-item prepend-icon="$delete" @click="emit('delete')">{{ $t('Delete') }}</v-list-item>
</v-list>
</v-menu>

View File

@@ -213,6 +213,7 @@ function addStep() {
editingObj.value.steps.push({
ingredients: [] as Ingredient[],
time: 0,
showIngredientsTable: useUserPreferenceStore().userSettings.showStepIngredients
} as Step)
}

View File

@@ -27,7 +27,7 @@
<v-divider class="mb-3"></v-divider>
<v-text-field v-model="useUserPreferenceStore().userSettings.defaultUnit" :label="$t('Default_Unit')"></v-text-field>
<v-text-field v-model="useUserPreferenceStore().userSettings.ingredientDecimals" :label="$t('Decimals')"></v-text-field>
<!-- <v-text-field v-model="useUserPreferenceStore().userSettings.ingredientDecimals" :label="$t('Decimals')"></v-text-field>-->
<!-- <v-select-->
<!-- :label="$t('DefaultPage')"-->

View File

@@ -78,7 +78,7 @@
<v-textarea v-model="space.message" :label="$t('Message')"></v-textarea>
<model-select v-model="space.foodInherit" model="FoodInheritField" mode="tags"></model-select>
<!-- <model-select v-model="space.foodInherit" model="FoodInheritField" mode="tags"></model-select>-->
<v-btn color="success" @click="updateSpace()" prepend-icon="$save">{{ $t('Save') }}</v-btn>