2021-07-31 15:07:19 -08:00
|
|
|
<template>
|
|
|
|
<div class="text-center">
|
|
|
|
<v-menu offset-y top nudge-top="6" :close-on-content-click="false">
|
2021-08-01 19:24:47 -08:00
|
|
|
<template #activator="{ on, attrs }">
|
2021-07-31 15:07:19 -08:00
|
|
|
<v-btn color="accent" dark v-bind="attrs" v-on="on">
|
|
|
|
<v-icon left>
|
|
|
|
{{ $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>
|
|
|
|
<v-divider class="mx-2"></v-divider>
|
2021-10-31 14:46:46 -08:00
|
|
|
<v-card-text class="mt-n5 pt-6 pb-2">
|
2022-08-14 10:37:44 -08: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>
|
|
|
|
|
2022-01-09 07:15:23 +01:00
|
|
|
<script lang="ts">
|
2022-08-14 10:37:44 -08:00
|
|
|
import { defineComponent } from "@nuxtjs/composition-api";
|
|
|
|
import RecipeSettingsSwitches from "./RecipeSettingsSwitches.vue";
|
2022-01-09 07:15:23 +01:00
|
|
|
|
|
|
|
export default defineComponent({
|
2022-08-14 10:37:44 -08:00
|
|
|
components: { RecipeSettingsSwitches },
|
2021-07-31 15:07:19 -08:00
|
|
|
props: {
|
2021-08-07 16:49:55 -08:00
|
|
|
value: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
2021-12-11 19:12:08 -09:00
|
|
|
isOwner: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
},
|
2021-07-31 15:07:19 -08:00
|
|
|
},
|
2022-01-09 07:15:23 +01:00
|
|
|
});
|
2021-07-31 15:07:19 -08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped></style>
|