mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-04 03:03:18 -05:00 
			
		
		
		
	* wip: fix recipe card section * refactor basic search to share composable * fix dialog results * use search for cat/tag/tool pages * update organizer to support name edits * fix composable typing
		
			
				
	
	
		
			42 lines
		
	
	
		
			917 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			917 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <v-container>
 | 
						|
    <RecipeOrganizerPage
 | 
						|
      v-if="tools"
 | 
						|
      :icon="$globals.icons.potSteam"
 | 
						|
      :items="tools"
 | 
						|
      item-type="tools"
 | 
						|
      @delete="actions.deleteOne"
 | 
						|
      @update="actions.updateOne"
 | 
						|
    >
 | 
						|
      <template #title> {{ $t("tool.tools") }} </template>
 | 
						|
    </RecipeOrganizerPage>
 | 
						|
  </v-container>
 | 
						|
</template>
 | 
						|
 | 
						|
<script lang="ts">
 | 
						|
import { defineComponent, ref } from "@nuxtjs/composition-api";
 | 
						|
import RecipeOrganizerPage from "~/components/Domain/Recipe/RecipeOrganizerPage.vue";
 | 
						|
import { useToolStore } from "~/composables/store";
 | 
						|
 | 
						|
export default defineComponent({
 | 
						|
  components: {
 | 
						|
    RecipeOrganizerPage,
 | 
						|
  },
 | 
						|
  setup() {
 | 
						|
    const toolStore = useToolStore();
 | 
						|
    const dialog = ref(false);
 | 
						|
 | 
						|
    return {
 | 
						|
      dialog,
 | 
						|
      tools: toolStore.items,
 | 
						|
      actions: toolStore.actions,
 | 
						|
    };
 | 
						|
  },
 | 
						|
  head() {
 | 
						|
    return {
 | 
						|
      title: this.$tc("tool.tools"),
 | 
						|
    };
 | 
						|
  },
 | 
						|
});
 | 
						|
</script>
 |