🎨 Make bottomnav hiding configurable in router

This commit is contained in:
2023-06-18 21:18:00 +02:00
parent 211d1d2b2f
commit 46b235ba91
2 changed files with 4 additions and 1 deletions

View File

@ -53,7 +53,7 @@ const isDataView = computed(() => route.meta.dataView || false);
<RouterView /> <RouterView />
</div> </div>
</main> </main>
<BottomNavbar v-show="$route.name != 'title.login'" /> <BottomNavbar v-show="!$route.meta.hideNav" />
</div> </div>
</div> </div>
</template> </template>

View File

@ -80,6 +80,9 @@ const router = createRouter({
path: "/login", path: "/login",
name: "title.login", name: "title.login",
component: LoginView, component: LoginView,
meta: {
hideNav: true,
},
}, },
{ {
path: "/token", path: "/token",