| 
									
										
										
										
											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> | 
					
						
							|  |  |  |         <v-card-text class="mt-n5"> | 
					
						
							|  |  |  |           <v-switch | 
					
						
							|  |  |  |             v-for="(itemValue, key) in value" | 
					
						
							|  |  |  |             :key="key" | 
					
						
							|  |  |  |             v-model="value[key]" | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |             dense | 
					
						
							| 
									
										
										
										
											2021-07-31 15:07:19 -08:00
										 |  |  |             flat | 
					
						
							|  |  |  |             inset | 
					
						
							|  |  |  |             :label="labels[key]" | 
					
						
							|  |  |  |             hide-details | 
					
						
							|  |  |  |           ></v-switch> | 
					
						
							|  |  |  |         </v-card-text> | 
					
						
							|  |  |  |       </v-card> | 
					
						
							|  |  |  |     </v-menu> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | </template> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <script> | 
					
						
							|  |  |  | export default { | 
					
						
							|  |  |  |   components: {}, | 
					
						
							|  |  |  |   props: { | 
					
						
							| 
									
										
										
										
											2021-08-07 16:49:55 -08:00
										 |  |  |     value: { | 
					
						
							|  |  |  |       type: Object, | 
					
						
							|  |  |  |       required: true, | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2021-07-31 15:07:19 -08:00
										 |  |  |   }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   computed: { | 
					
						
							|  |  |  |     labels() { | 
					
						
							|  |  |  |       return { | 
					
						
							|  |  |  |         public: this.$t("recipe.public-recipe"), | 
					
						
							|  |  |  |         showNutrition: this.$t("recipe.show-nutrition-values"), | 
					
						
							|  |  |  |         showAssets: this.$t("asset.show-assets"), | 
					
						
							|  |  |  |         landscapeView: this.$t("recipe.landscape-view-coming-soon"), | 
					
						
							|  |  |  |         disableComments: this.$t("recipe.disable-comments"), | 
					
						
							|  |  |  |         disableAmount: this.$t("recipe.disable-amount"), | 
					
						
							|  |  |  |       }; | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   methods: {}, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | </script> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <style lang="scss" scoped></style> |