Skip to content
Snippets Groups Projects
Commit f3bb82f1 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

do not filter navigation

parent fa8f8275
No related branches found
No related tags found
No related merge requests found
Pipeline #118600 passed with warnings
...@@ -13,23 +13,23 @@ import { useDisplay, useTheme } from "vuetify"; ...@@ -13,23 +13,23 @@ import { useDisplay, useTheme } from "vuetify";
const { navigation, page } = useContent(); const { navigation, page } = useContent();
// const drawer = ref(true); // const drawer = ref(true);
const computedNavigation = computed(() => { // const computedNavigation = computed(() => {
return navigation.value // return navigation.value
.filter((item: { layout: string }) => { // .filter((item: { layout: string }) => {
if (item?.layout === "db") { // if (item?.layout === "db") {
console.log(item) // console.log(item)
return false // return false
} // }
return true // return true
// return item?.layout !== "db" // // return item?.layout !== "db"
}) // })
}); // });
</script> </script>
<template> <template>
<v-navigation-drawer :model-value="drawer" :border="1" color="background"> <v-navigation-drawer :model-value="drawer" :border="1" color="background">
<v-list nav density="compact" :lines="false"> <v-list nav density="compact" :lines="false">
<NavNavigation :navigation="computedNavigation" /> <NavNavigation :navigation="navigation" />
</v-list> </v-list>
</v-navigation-drawer> </v-navigation-drawer>
</template> </template>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment