SYNC: diagram improvements

This commit is contained in:
SPRINX0\prochazka
2025-04-01 10:01:16 +02:00
committed by Diflow
parent a81d66ace3
commit b8b1412bf8
3 changed files with 19 additions and 13 deletions

View File

@@ -944,12 +944,13 @@
// }
// }
// $: if (onReportCounts) {
// onReportCounts({
// all: value?.tables?.length ?? 0,
// filtered: tables?.length ?? 0,
// });
// }
$: if (onReportCounts) {
// console.log('REPORTING COUNTS');
onReportCounts({
all: _.compact(value?.tables || []).length,
filtered: _.compact(tables || []).length,
});
}
</script>
<div

View File

@@ -119,6 +119,10 @@
{ command: 'diagram.redo' },
];
}
function handleReportCounts(counts) {
tableCounts = counts;
}
</script>
<ToolStripContainer>
@@ -131,9 +135,7 @@
onChange={handleChange}
menu={createMenu}
columnFilter={$styleStore.columnFilter}
onReportCounts={counts => {
tableCounts = counts;
}}
onReportCounts={handleReportCounts}
/>
</svelte:fragment>
<svelte:fragment slot="2">