Files
recipes/vue3/src/components/display/NavigationDrawerContextMenu.vue
2024-12-08 17:16:38 +01:00

27 lines
594 B
Vue

<template>
<template v-if="route.name == 'ModelListPage'">
<v-divider></v-divider>
<v-list-item v-for="m in getListModels()"
:to="{ name: 'ModelListPage', params: {model: m.name} }">
<template #prepend>
<v-icon :icon="m.icon"></v-icon>
</template>
{{ $t(m.localizationKey) }}
</v-list-item>
</template>
</template>
<script setup lang="ts">
import {useRoute} from "vue-router";
import {getListModels} from "@/types/Models";
const route = useRoute()
</script>
<style scoped>
</style>