| 
									
										
										
										
											2021-12-10 19:48:06 -09:00
										 |  |  | <template> | 
					
						
							|  |  |  |   <v-container> | 
					
						
							| 
									
										
										
										
											2022-06-03 20:12:32 -08:00
										 |  |  |     <RecipeOrganizerPage | 
					
						
							|  |  |  |       v-if="tools" | 
					
						
							|  |  |  |       :icon="$globals.icons.potSteam" | 
					
						
							|  |  |  |       :items="tools" | 
					
						
							|  |  |  |       item-type="tools" | 
					
						
							|  |  |  |       @delete="actions.deleteOne" | 
					
						
							| 
									
										
										
										
											2023-03-12 12:59:28 -08:00
										 |  |  |       @update="actions.updateOne" | 
					
						
							| 
									
										
										
										
											2022-06-03 20:12:32 -08:00
										 |  |  |     > | 
					
						
							| 
									
										
										
										
											2023-03-12 12:59:28 -08:00
										 |  |  |       <template #title> {{ $t("tool.tools") }} </template> | 
					
						
							| 
									
										
										
										
											2022-06-03 20:12:32 -08:00
										 |  |  |     </RecipeOrganizerPage> | 
					
						
							| 
									
										
										
										
											2021-12-10 19:48:06 -09:00
										 |  |  |   </v-container> | 
					
						
							|  |  |  | </template> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <script lang="ts"> | 
					
						
							| 
									
										
										
										
											2022-06-03 20:12:32 -08:00
										 |  |  | import { defineComponent, ref } from "@nuxtjs/composition-api"; | 
					
						
							|  |  |  | import RecipeOrganizerPage from "~/components/Domain/Recipe/RecipeOrganizerPage.vue"; | 
					
						
							|  |  |  | import { useToolStore } from "~/composables/store"; | 
					
						
							| 
									
										
										
										
											2021-12-10 19:48:06 -09:00
										 |  |  | 
 | 
					
						
							|  |  |  | export default defineComponent({ | 
					
						
							|  |  |  |   components: { | 
					
						
							| 
									
										
										
										
											2022-06-03 20:12:32 -08:00
										 |  |  |     RecipeOrganizerPage, | 
					
						
							| 
									
										
										
										
											2021-12-10 19:48:06 -09:00
										 |  |  |   }, | 
					
						
							| 
									
										
										
										
											2024-02-02 14:45:30 +00:00
										 |  |  |   middleware: ["auth", "group-only"], | 
					
						
							| 
									
										
										
										
											2021-12-10 19:48:06 -09:00
										 |  |  |   setup() { | 
					
						
							| 
									
										
										
										
											2022-06-03 20:12:32 -08:00
										 |  |  |     const toolStore = useToolStore(); | 
					
						
							|  |  |  |     const dialog = ref(false); | 
					
						
							| 
									
										
										
										
											2022-04-20 20:09:23 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-10 19:48:06 -09:00
										 |  |  |     return { | 
					
						
							| 
									
										
										
										
											2022-06-03 20:12:32 -08:00
										 |  |  |       dialog, | 
					
						
							|  |  |  |       tools: toolStore.items, | 
					
						
							|  |  |  |       actions: toolStore.actions, | 
					
						
							| 
									
										
										
										
											2021-12-10 19:48:06 -09:00
										 |  |  |     }; | 
					
						
							|  |  |  |   }, | 
					
						
							| 
									
										
										
										
											2023-01-29 02:39:51 +01:00
										 |  |  |   head() { | 
					
						
							|  |  |  |     return { | 
					
						
							|  |  |  |       title: this.$tc("tool.tools"), | 
					
						
							|  |  |  |     }; | 
					
						
							| 
									
										
										
										
											2022-06-03 20:12:32 -08:00
										 |  |  |   }, | 
					
						
							| 
									
										
										
										
											2021-12-10 19:48:06 -09:00
										 |  |  | }); | 
					
						
							| 
									
										
										
										
											2022-01-07 22:08:05 +01:00
										 |  |  | </script> |