diff --git a/src/components/TimeEntry.vue b/src/components/TimeEntry.vue
index 8de0bb6..058e361 100644
--- a/src/components/TimeEntry.vue
+++ b/src/components/TimeEntry.vue
@@ -223,6 +223,10 @@ const props = defineProps({
},
});
+const emit = defineEmits<{
+ (e: 'add'): void
+}>()
+
const model = ref(Object.assign({}, props.entry));
const placeholder = ref('00:00:00');
@@ -378,6 +382,7 @@ function stop() {
function add() {
model.value.is_creating = false;
commitEntry(model.value as Entry);
+ emit('add');
}
function edit() {
diff --git a/src/pages/index.vue b/src/pages/index.vue
index f1b4d10..7edc1e3 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -4,7 +4,7 @@