From 9e73e16b7fcfd7260a087acc4fdf01fba22c5bc4 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 1 Sep 2022 17:38:43 +0200 Subject: [PATCH] parent filter icon in designer --- packages/web/src/designer/DesignerTable.svelte | 5 +++++ packages/web/src/perspectives/PerspectiveDesigner.svelte | 1 + 2 files changed, 6 insertions(+) diff --git a/packages/web/src/designer/DesignerTable.svelte b/packages/web/src/designer/DesignerTable.svelte index ac74e0c9..56e136b6 100644 --- a/packages/web/src/designer/DesignerTable.svelte +++ b/packages/web/src/designer/DesignerTable.svelte @@ -66,6 +66,7 @@ $: top = table?.top; $: mainIcon = settings?.getMainTableIcon ? settings?.getMainTableIcon(designerId) : null; $: specificDb = settings?.tableSpecificDb ? settings?.tableSpecificDb(designerId) : null; + $: filterParentRows = settings?.hasFilterParentRowsFlag ? settings?.hasFilterParentRowsFlag(designerId) : null; export function isSelected() { return table?.isSelectedTable; @@ -260,6 +261,10 @@ {#if specificDb} {/if} + + {#if filterParentRows} + + {/if} {#if settings?.showTableCloseButton}
onRemoveTable(table)}> diff --git a/packages/web/src/perspectives/PerspectiveDesigner.svelte b/packages/web/src/perspectives/PerspectiveDesigner.svelte index 3a9b6390..1457eec8 100644 --- a/packages/web/src/perspectives/PerspectiveDesigner.svelte +++ b/packages/web/src/perspectives/PerspectiveDesigner.svelte @@ -264,6 +264,7 @@ }; } }, + hasFilterParentRowsFlag: designerId => !!config.nodes.find(x => x.designerId == designerId)?.isParentFilter, }} referenceComponent={QueryDesignerReference} value={createDesignerModel(config, dbInfos)}