Skip to content

Commit

Permalink
docs(SettingsDrawer): remove lazy loading
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Jun 22, 2023
1 parent 62e5bc1 commit 40d22b7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
7 changes: 0 additions & 7 deletions packages/docs/src/components/app/bar/SettingsToggle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
color="medium-emphasis"
icon="mdi-cog-outline"
path="settings"
@mouseenter.once="onMouseenter"
@click="onClick"
/>
</template>
Expand All @@ -25,10 +24,4 @@
app.settings = !app.settings
}
function onMouseenter () {
if (app.settingsCanShow) return
app.settingsCanShow = true
}
</script>
1 change: 0 additions & 1 deletion packages/docs/src/components/app/settings/Drawer.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<template>
<v-navigation-drawer
v-if="app.settingsCanShow"
id="settings-drawer"
v-model="app.settings"
:location="isRtl ? 'left' : 'right'"
Expand Down
2 changes: 0 additions & 2 deletions packages/docs/src/store/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export type RootState = {
apiSearch: string
drawer: boolean | null
settings: boolean
settingsCanShow: boolean
toc: boolean | null
}

Expand All @@ -31,7 +30,6 @@ export const useAppStore = defineStore({
items: Array.from(data),
pages: getPages(data as NavItem[]),
settings: false,
settingsCanShow: false,
categories: {
api: {
icon: 'mdi-flask-outline',
Expand Down

0 comments on commit 40d22b7

Please sign in to comment.