Skip to content

Commit 3a482c1

Browse files
committed
fix reporting not updating and client ui cue #458
1 parent ef9f353 commit 3a482c1

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

resources/js/Pages/Reporting.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,8 @@ const tableData = computed(() => {
339339
@submit="updateReporting">
340340
<template #trigger>
341341
<ReportingFilterBadge
342+
:count="selectedClients.length"
343+
:active="selectedClients.length > 0"
342344
title="Clients"
343345
:icon="FolderIcon"></ReportingFilterBadge>
344346
</template>

resources/js/Pages/ReportingDetailed.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ async function downloadExport(format: ExportFormat) {
308308
@submit="updateFilteredTimeEntries">
309309
<template #trigger>
310310
<ReportingFilterBadge
311+
:count="selectedClients.length"
312+
:active="selectedClients.length > 0"
311313
title="Clients"
312314
:icon="FolderIcon"></ReportingFilterBadge>
313315
</template>

resources/js/packages/ui/src/Input/Dropdown.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import { Popover, PopoverContent, PopoverTrigger } from '@/Components/ui/popover';
3+
import { watch } from "vue";
34
45
const props = withDefaults(
56
defineProps<{
@@ -36,6 +37,12 @@ function onOpenChange(value: boolean) {
3637
}
3738
}
3839
40+
watch(open, (value) => {
41+
if (value === false) {
42+
emit('submit');
43+
}
44+
});
45+
3946
</script>
4047

4148
<template>

0 commit comments

Comments
 (0)