Dashboard Data Refresh After creating a time entry, fixes ST-299

This commit is contained in:
Gregor Vostrak
2024-09-06 15:07:13 +02:00
committed by Constantin Graf
parent c09119af33
commit b518187ecb
3 changed files with 56 additions and 32 deletions

View File

@@ -45,12 +45,17 @@ const { tasks } = storeToRefs(taskStore);
const clientStore = useClientsStore();
const { clients } = storeToRefs(clientStore);
const emit = defineEmits<{
change: [];
}>();
watch(isActive, () => {
if (isActive.value) {
startLiveTimer();
} else {
stopLiveTimer();
}
emit('change');
});
onMounted(async () => {