mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
small improvements
This commit is contained in:
27
vue3/src/components/display/NavigationDrawerContextMenu.vue
Normal file
27
vue3/src/components/display/NavigationDrawerContextMenu.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user