|
|
@@ -4,7 +4,7 @@ header principal (configuration, paramètres du compte...)
|
|
|
-->
|
|
|
|
|
|
<template>
|
|
|
- <v-menu offset-y left max-height="300">
|
|
|
+ <v-menu offset-y left>
|
|
|
<template v-slot:activator="{ on: { click }, attrs }">
|
|
|
<v-tooltip bottom>
|
|
|
<template v-slot:activator="{ on: on_tooltips , attrs: attrs_tooltips }">
|
|
|
@@ -37,31 +37,49 @@ header principal (configuration, paramètres du compte...)
|
|
|
<span>{{ $t(menu.title) }}</span>
|
|
|
</v-tooltip>
|
|
|
</template>
|
|
|
- <v-list dense :subheader="true">
|
|
|
- <v-list-item dense class="ot_light_grey">
|
|
|
- <v-list-item-title v-text="$t(menu.title)" />
|
|
|
- </v-list-item>
|
|
|
- <template v-for="(item, index) in menu.children">
|
|
|
- <v-list-item
|
|
|
- :key="item.title"
|
|
|
- :href="item.isExternalLink ? item.to : undefined"
|
|
|
- :to="!item.isExternalLink ? item.to : undefined"
|
|
|
- router
|
|
|
- exact
|
|
|
- >
|
|
|
- <v-list-item-title v-text="$t(item.title)" />
|
|
|
- </v-list-item>
|
|
|
- <v-divider
|
|
|
- v-if="index < menu.length - 1"
|
|
|
- :key="index"
|
|
|
- />
|
|
|
- </template>
|
|
|
- </v-list>
|
|
|
+ <v-card scrollable>
|
|
|
+ <v-card-title class="ot_super_light_grey text-body-2 font-weight-bold">
|
|
|
+ {{$t(menu.title)}}
|
|
|
+ </v-card-title>
|
|
|
+ <v-card-text style="max-height: 300px; overflow-y: scroll" class="ma-0 pa-0">
|
|
|
+ <v-list dense :subheader="true">
|
|
|
+ <template v-for="(item, index) in menu.children">
|
|
|
+ <v-list-item
|
|
|
+
|
|
|
+ :id="item.title"
|
|
|
+ :key="item.title"
|
|
|
+ :href="item.isExternalLink ? item.to : undefined"
|
|
|
+ :to="!item.isExternalLink ? item.to : undefined"
|
|
|
+ router
|
|
|
+ exact
|
|
|
+ >
|
|
|
+ <v-list-item-title v-text="$t(item.title)"/>
|
|
|
+ </v-list-item>
|
|
|
+ </template>
|
|
|
+ </v-list>
|
|
|
+ </v-card-text>
|
|
|
+ <v-card-actions class="ma-0 pa-0">
|
|
|
+ <template v-for="(item, index) in menu.actions">
|
|
|
+ <v-list-item
|
|
|
+ class="text-body-2"
|
|
|
+ :id="item.title"
|
|
|
+ :key="item.title"
|
|
|
+ :href="item.isExternalLink ? item.to : undefined"
|
|
|
+ :to="!item.isExternalLink ? item.to : undefined"
|
|
|
+ router
|
|
|
+ >
|
|
|
+ <v-list-item-title v-text="$t(item.title)"/>
|
|
|
+ </v-list-item>
|
|
|
+ </template>
|
|
|
+ </v-card-actions>
|
|
|
+ </v-card>
|
|
|
+
|
|
|
+
|
|
|
</v-menu>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent } from '@nuxtjs/composition-api'
|
|
|
+import {defineComponent} from '@nuxtjs/composition-api'
|
|
|
|
|
|
export default defineComponent({
|
|
|
props: {
|
|
|
@@ -76,3 +94,9 @@ export default defineComponent({
|
|
|
}
|
|
|
})
|
|
|
</script>
|
|
|
+<style scoped>
|
|
|
+ #logout{
|
|
|
+ background: var(--v-ot_green-base, white);
|
|
|
+ color: white;
|
|
|
+ }
|
|
|
+</style>
|