Fixed pagination errors on the Task page, updated to the correct API calls to get that data.

This commit is contained in:
rocketdebris 2026-01-13 11:54:13 -05:00
parent 59e21a51f2
commit 84c7eb0580
3 changed files with 59 additions and 81 deletions

View file

@ -44,7 +44,7 @@ const currentFilters = computed(() => {
const columns = [
{ label: "Task", fieldName: "subject", type: "text", sortable: true, filterable: true },
{ label: "Project", fieldName: "project", type: "link", sortable: true,
{ label: "Job", fieldName: "project", type: "link", sortable: true,
onLinkClick: (link, rowData) => handleProjectClick(link, rowData)
},
{ label: "Address", fieldName: "address", type: "link", sortable: true,
@ -154,6 +154,14 @@ const handlePropertyClick = (link, rowData) => {
// router.push(`/task?taskId=${rowData.name}`);
//}
watch(
() => filtersStore.getTableFilters("clients"),
async () => {
await refreshStatusCounts();
},
{ deep: true },
);
// Load initial data
onMounted(async () => {
notifications.addWarning("Tasks page coming soon");
@ -173,6 +181,7 @@ onMounted(async () => {
first: initialPagination.first,
sortField: initialSorting.field || initialPagination.sortField,
sortOrder: initialSorting.order || initialPagination.sortOrder,
filters: initialFilters,
});
});
</script>