2021-07-31 15:07:19 -08:00
|
|
|
<template>
|
|
|
|
<div class="text-center">
|
2025-06-20 00:09:12 +07:00
|
|
|
<v-menu
|
|
|
|
offset-y
|
|
|
|
top
|
|
|
|
nudge-top="6"
|
|
|
|
:close-on-content-click="false"
|
|
|
|
>
|
|
|
|
<template #activator="{ props }">
|
|
|
|
<v-btn
|
|
|
|
color="accent"
|
|
|
|
dark
|
|
|
|
v-bind="props"
|
|
|
|
>
|
|
|
|
<v-icon start>
|
2021-07-31 15:07:19 -08:00
|
|
|
{{ $globals.icons.cog }}
|
|
|
|
</v-icon>
|
|
|
|
{{ $t("general.settings") }}
|
|
|
|
</v-btn>
|
|
|
|
</template>
|
|
|
|
<v-card>
|
|
|
|
<v-card-title class="py-2">
|
|
|
|
<div>
|
|
|
|
{{ $t("recipe.recipe-settings") }}
|
|
|
|
</div>
|
|
|
|
</v-card-title>
|
2025-06-20 00:09:12 +07:00
|
|
|
<v-divider class="mx-2" />
|
2021-10-31 14:46:46 -08:00
|
|
|
<v-card-text class="mt-n5 pt-6 pb-2">
|
2025-06-20 00:09:12 +07:00
|
|
|
<RecipeSettingsSwitches
|
|
|
|
v-model="value"
|
|
|
|
:is-owner="isOwner"
|
|
|
|
/>
|
2021-07-31 15:07:19 -08:00
|
|
|
</v-card-text>
|
|
|
|
</v-card>
|
|
|
|
</v-menu>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2025-06-20 00:09:12 +07:00
|
|
|
<script lang="ts" setup>
|
2022-08-14 10:37:44 -08:00
|
|
|
import RecipeSettingsSwitches from "./RecipeSettingsSwitches.vue";
|
2022-01-09 07:15:23 +01:00
|
|
|
|
2025-06-20 00:09:12 +07:00
|
|
|
const value = defineModel<object>({ required: true });
|
|
|
|
|
|
|
|
defineProps<{ isOwner?: boolean }>();
|
2021-07-31 15:07:19 -08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped></style>
|