parent filter icon in designer

This commit is contained in:
Jan Prochazka 2022-09-01 17:38:43 +02:00
parent 1e91097bf2
commit 9e73e16b7f
2 changed files with 6 additions and 0 deletions

View File

@ -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}
<FontIcon icon="icon database" title={specificDb.database} />
{/if}
{#if filterParentRows}
<FontIcon icon="icon parent-filter" title="Filter parent rows" />
{/if}
</div>
{#if settings?.showTableCloseButton}
<div class="close" on:click={() => onRemoveTable(table)}>

View File

@ -264,6 +264,7 @@
};
}
},
hasFilterParentRowsFlag: designerId => !!config.nodes.find(x => x.designerId == designerId)?.isParentFilter,
}}
referenceComponent={QueryDesignerReference}
value={createDesignerModel(config, dbInfos)}