fix settings menu

This commit is contained in:
Michael Genson 2025-06-16 21:05:55 +00:00
commit b71e8ffa1f
2 changed files with 3 additions and 2 deletions

View file

@ -27,7 +27,7 @@
<v-divider class="mx-2" /> <v-divider class="mx-2" />
<v-card-text class="mt-n5 pt-6 pb-2"> <v-card-text class="mt-n5 pt-6 pb-2">
<RecipeSettingsSwitches <RecipeSettingsSwitches
v-model="modelValue" v-model="value"
:is-owner="isOwner" :is-owner="isOwner"
/> />
</v-card-text> </v-card-text>
@ -42,7 +42,7 @@ import RecipeSettingsSwitches from "./RecipeSettingsSwitches.vue";
export default defineNuxtComponent({ export default defineNuxtComponent({
components: { RecipeSettingsSwitches }, components: { RecipeSettingsSwitches },
props: { props: {
modelValue: { value: {
type: Object, type: Object,
required: true, required: true,
}, },

View file

@ -4,6 +4,7 @@
v-for="(_, key) in modelValue" v-for="(_, key) in modelValue"
:key="key" :key="key"
v-model="modelValue[key]" v-model="modelValue[key]"
color="primary"
xs xs
density="compact" density="compact"
:disabled="key == 'locked' && !isOwner" :disabled="key == 'locked' && !isOwner"