| 
									
										
										
										
											2020-12-24 16:37:38 -09:00
										 |  |  | <template> | 
					
						
							|  |  |  |   <v-toolbar class="card-btn" flat height="0" extension-height="0"> | 
					
						
							|  |  |  |     <template v-slot:extension> | 
					
						
							|  |  |  |       <v-col></v-col> | 
					
						
							|  |  |  |       <div v-if="open"> | 
					
						
							| 
									
										
										
										
											2021-01-05 12:43:28 -06:00
										 |  |  |         <v-btn | 
					
						
							|  |  |  |           class="mr-2" | 
					
						
							|  |  |  |           fab | 
					
						
							|  |  |  |           dark | 
					
						
							|  |  |  |           small | 
					
						
							|  |  |  |           color="error" | 
					
						
							|  |  |  |           @click="deleteRecipeConfrim" | 
					
						
							|  |  |  |         > | 
					
						
							| 
									
										
										
										
											2020-12-24 16:37:38 -09:00
										 |  |  |           <v-icon>mdi-delete</v-icon> | 
					
						
							|  |  |  |         </v-btn> | 
					
						
							| 
									
										
										
										
											2021-01-05 12:43:28 -06:00
										 |  |  |         <Confirmation | 
					
						
							|  |  |  |           title="Delete Recpie" | 
					
						
							|  |  |  |           message="Are you sure you want to delete this recipie?" | 
					
						
							|  |  |  |           color="error" | 
					
						
							|  |  |  |           icon="mdi-alert-circle" | 
					
						
							|  |  |  |           ref="deleteRecipieConfirm" | 
					
						
							|  |  |  |           v-on:confirm="deleteRecipe()" | 
					
						
							|  |  |  |         /> | 
					
						
							| 
									
										
										
										
											2021-01-04 23:10:14 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-24 16:37:38 -09:00
										 |  |  |         <v-btn class="mr-2" fab dark small color="success" @click="save"> | 
					
						
							|  |  |  |           <v-icon>mdi-content-save</v-icon> | 
					
						
							|  |  |  |         </v-btn> | 
					
						
							| 
									
										
										
										
											2020-12-24 19:32:49 -09:00
										 |  |  |         <v-btn class="mr-5" fab dark small color="secondary" @click="json"> | 
					
						
							| 
									
										
										
										
											2020-12-24 16:37:38 -09:00
										 |  |  |           <v-icon>mdi-code-braces</v-icon> | 
					
						
							|  |  |  |         </v-btn> | 
					
						
							|  |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2020-12-24 19:32:49 -09:00
										 |  |  |       <v-btn color="accent" fab dark small @click="editor"> | 
					
						
							| 
									
										
										
										
											2020-12-24 16:37:38 -09:00
										 |  |  |         <v-icon>mdi-square-edit-outline</v-icon> | 
					
						
							|  |  |  |       </v-btn> | 
					
						
							|  |  |  |     </template> | 
					
						
							|  |  |  |   </v-toolbar> | 
					
						
							|  |  |  | </template> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <script> | 
					
						
							| 
									
										
										
										
											2021-01-05 12:48:10 -06:00
										 |  |  | import Confirmation from "./Confirmation"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-24 16:37:38 -09:00
										 |  |  | export default { | 
					
						
							|  |  |  |   props: { | 
					
						
							|  |  |  |     open: { | 
					
						
							| 
									
										
										
										
											2021-01-05 12:43:28 -06:00
										 |  |  |       type: Boolean, | 
					
						
							|  |  |  |       default: true | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2020-12-24 16:37:38 -09:00
										 |  |  |   }, | 
					
						
							| 
									
										
										
										
											2021-01-05 12:48:10 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-04 23:10:14 -06:00
										 |  |  |   components: { | 
					
						
							| 
									
										
										
										
											2021-01-05 12:48:10 -06:00
										 |  |  |     Confirmation | 
					
						
							| 
									
										
										
										
											2021-01-04 23:10:14 -06:00
										 |  |  |   }, | 
					
						
							| 
									
										
										
										
											2021-01-05 12:48:10 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-24 16:37:38 -09:00
										 |  |  |   methods: { | 
					
						
							|  |  |  |     editor() { | 
					
						
							|  |  |  |       this.$emit("editor"); | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     save() { | 
					
						
							|  |  |  |       this.$emit("save"); | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2021-01-05 12:43:28 -06:00
										 |  |  |     deleteRecipeConfrim() { | 
					
						
							|  |  |  |       this.$refs.deleteRecipieConfirm.open(); | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     deleteRecipe() { | 
					
						
							|  |  |  |       this.$emit("delete"); | 
					
						
							| 
									
										
										
										
											2020-12-24 16:37:38 -09:00
										 |  |  |     }, | 
					
						
							|  |  |  |     json() { | 
					
						
							|  |  |  |       this.$emit("json"); | 
					
						
							| 
									
										
										
										
											2021-01-05 12:43:28 -06:00
										 |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2020-12-24 16:37:38 -09:00
										 |  |  | }; | 
					
						
							|  |  |  | </script> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <style> | 
					
						
							|  |  |  | </style> |