mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-03 19:18:22 -05:00 
			
		
		
		
	* use generic context menu * implement organizer stores * add basic organizer types * refactor selectors to apply for all organizers * remove legacy organizer composables
		
			
				
	
	
		
			39 lines
		
	
	
		
			828 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			828 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <v-container>
 | 
						|
    <RecipeOrganizerPage
 | 
						|
      v-if="tools"
 | 
						|
      :icon="$globals.icons.potSteam"
 | 
						|
      :items="tools"
 | 
						|
      item-type="tools"
 | 
						|
      @delete="actions.deleteOne"
 | 
						|
    >
 | 
						|
      <template #title> 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: {
 | 
						|
    title: "Tools",
 | 
						|
  },
 | 
						|
});
 | 
						|
</script>
 |