Event handlers and Flex changes

This commit is contained in:
Hein
2025-10-22 17:06:31 +02:00
parent af68d6d377
commit f5887b5be6
6 changed files with 82 additions and 14 deletions

View File

@@ -181,6 +181,11 @@ export const Computer = React.memo(() => {
}));
}).then(() => {
loadPage(0, 'all');
getState('_events')?.dispatchEvent?.(
new CustomEvent('onColumnSorted', {
detail: { cols: colSort },
})
);
});
}, [colSort]);
@@ -192,6 +197,11 @@ export const Computer = React.memo(() => {
if (JSON.stringify(refLastFilters.current) !== JSON.stringify(colFilters)) {
loadPage(0, 'all');
refLastFilters.current = colFilters;
getState('_events')?.dispatchEvent?.(
new CustomEvent('onColumnFiltered', {
detail: { filters: colFilters },
})
);
}
}, [colFilters]);