mirror of
https://github.com/mealie-recipes/mealie.git
synced 2024-12-26 22:11:20 -08:00
7c274de778
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
43 lines
955 B
Vue
43 lines
955 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,
|
|
},
|
|
middleware: ["auth", "group-only"],
|
|
setup() {
|
|
const toolStore = useToolStore();
|
|
const dialog = ref(false);
|
|
|
|
return {
|
|
dialog,
|
|
tools: toolStore.store,
|
|
actions: toolStore.actions,
|
|
};
|
|
},
|
|
head() {
|
|
return {
|
|
title: this.$tc("tool.tools"),
|
|
};
|
|
},
|
|
});
|
|
</script>
|