Skip to content

Commit

Permalink
top navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis committed Sep 23, 2024
1 parent 9bc6b25 commit d01e9c9
Show file tree
Hide file tree
Showing 3 changed files with 289 additions and 79 deletions.
2 changes: 1 addition & 1 deletion assets/js/components/SelectGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:id="i === 0 ? id : null"
:key="option.value"
type="button"
class="btn btn-lg flex-grow-1 flex-shrink-1"
class="btn btn-sm flex-grow-1 flex-shrink-1"
:class="{ active: option.value === modelValue, 'btn--equal': equalWidth }"
:disabled="option.disabled"
@click="$emit('update:modelValue', option.value)"
Expand Down
3 changes: 2 additions & 1 deletion assets/js/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ export default function setupRouter(i18n) {
path: "/sessions",
component: () => import("./views/Sessions.vue"),
props: (route) => {
const { month, year, loadpoint, vehicle } = route.query;
const { month, year, loadpoint, vehicle, period } = route.query;
return {
month: month ? parseInt(month, 10) : undefined,
year: year ? parseInt(year, 10) : undefined,
period,
loadpointFilter: loadpoint,
vehicleFilter: vehicle,
};
Expand Down
Loading

0 comments on commit d01e9c9

Please sign in to comment.