🎨 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 />
</div>
</main>
<BottomNavbar v-show="$route.name != 'title.login'" />
<BottomNavbar v-show="!$route.meta.hideNav" />
</div>
</div>
</template>

View File

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