Compare commits

...

2 Commits

Author SHA1 Message Date
garionion ced4dc88d5
fix navbar routing on mobile
continuous-integration/drone/push Build is passing Details
2021-04-07 12:30:49 +02:00
garionion fdf35ad14f
fix query property parsing 2021-04-07 12:24:04 +02:00
2 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@
<div class="sm:hidden" :class="{ hidden: !open }">
<div class="px-2 pt-2 pb-3 space-y-1">
<!-- Current: "bg-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" -->
<a
<router-link
v-for="{ name, to } in items"
:key="name"
v-text="name"

View File

@ -51,7 +51,7 @@ const routes: RouteRecordRaw[] = [
name: "EditAccessPoint",
component: CreateAccessPoint,
props: (route) => ({
apID: Number.parseInt(route.query["site-id"] as string),
apID: Number.parseInt(route.query["ap-id"] as string),
edit: true,
}),
},
@ -61,7 +61,7 @@ const routes: RouteRecordRaw[] = [
component: RegisterAccessPoint,
props: (route) =>
route.query["ap-id"]
? { apID: Number.parseInt(route.query["site-id"] as string) }
? { apID: Number.parseInt(route.query["ap-id"] as string) }
: {},
},
];