Skip to content

Commit 972bba3

Browse files
committedJan 30, 2024
drawer closing
1 parent 6a0798d commit 972bba3

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed
 

‎db.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"first_name": "Janette",
1313
"last_name": "Kereluk",
1414
"email": "boomhandmade@live.com",
15-
"status": false
15+
"status": true
1616
},
1717
{
1818
"id": "8d1c1c46-9b97-45e0-a8fb-68a0785ad05b",
@@ -153,6 +153,13 @@
153153
"last_name": "Heisenberg",
154154
"email": "werner@heisenberg.de",
155155
"status": true
156+
},
157+
{
158+
"id": "acafdb3c-699c-4f9a-a9e5-cefb739383c6",
159+
"first_name": "Niels",
160+
"last_name": "Bohr",
161+
"email": "niels@bohr.com",
162+
"status": true
156163
}
157164
]
158165
}

‎layouts/default.vue

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<script setup lang="ts">
22
// Consts & imports
33
const isOpen = ref(false)
4+
const route = useRoute()
5+
46
const colorMode = useColorMode()
57
const colorModeButtonLabel = ref('Enable Light Mode')
6-
const route = useRoute()
78
const capitalizeFirstLetter = (string: string) =>
89
string.charAt(0).toUpperCase() + string.slice(1)
910
@@ -116,7 +117,11 @@ const navigation = [
116117
</template>
117118

118119
<!-- Main Navigation Items -->
119-
<UVerticalNavigation :links="navigation" :ui="{ base: 'gap-4' }" />
120+
<UVerticalNavigation
121+
:links="navigation"
122+
:ui="{ base: 'gap-4' }"
123+
@click="() => (isOpen = false)"
124+
/>
120125
<template #footer>
121126
<div class="flex items-center justify-between">
122127
<UButton variant="outline">Logout</UButton>

‎pages/customers/index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts" setup>
2-
import { v4 as uuidv4 } from 'uuid'
2+
import { v4 as uuidv4 } from 'uuid' // needs to get typed
33
import type { Customer } from '@/models/customers'
44
const customerStore = useCustomerStore()
55

0 commit comments

Comments
 (0)
Please sign in to comment.