Skip to content

Commit

Permalink
chore: close drawer on route update
Browse files Browse the repository at this point in the history
  • Loading branch information
ymarcon committed Jan 7, 2025
1 parent 39859dd commit b5bacc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 4 additions & 0 deletions frontend/src/components/HeaderPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ function onToggleDrawer() {
rightDrawerOpen.value = !rightDrawerOpen.value;
emit('update:modelValue', rightDrawerOpen.value);
}
onBeforeRouteUpdate(() => {
rightDrawerOpen.value = false;
});
</script>
8 changes: 0 additions & 8 deletions frontend/src/components/NavDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@
class="text-primary"
></q-btn>
<q-icon name="horizontal_rule" size="md" class="q-mt-md" />
<q-btn
no-caps
size="xl"
to="/resources"
:label="$t('resources')"
class="text-primary"
></q-btn>
<q-icon name="horizontal_rule" size="md" class="q-mt-md" />
<q-btn
no-caps
size="xl"
Expand Down

0 comments on commit b5bacc1

Please sign in to comment.