Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Commit 5db9550

Browse files
committed
chore: show create note button when there's no notes
1 parent f2f993d commit 5db9550

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

apps/web-app/pages/index.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="flex items-center justify-center h-full">
3-
<div>Loading...</div>
3+
<Button variant="primary" @click="handleCreateNote">Create Note</Button>
44
</div>
55
</template>
66

@@ -26,6 +26,12 @@ definePageMeta({
2626
}
2727
}
2828
]
29-
})
29+
});
30+
31+
const { createNote } = useNotes();
32+
33+
async function handleCreateNote() {
34+
await createNote();
35+
}
3036
3137
</script>

0 commit comments

Comments
 (0)