mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
parent filter icon in designer
This commit is contained in:
parent
1e91097bf2
commit
9e73e16b7f
@ -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)}>
|
||||
|
@ -264,6 +264,7 @@
|
||||
};
|
||||
}
|
||||
},
|
||||
hasFilterParentRowsFlag: designerId => !!config.nodes.find(x => x.designerId == designerId)?.isParentFilter,
|
||||
}}
|
||||
referenceComponent={QueryDesignerReference}
|
||||
value={createDesignerModel(config, dbInfos)}
|
||||
|
Loading…
Reference in New Issue
Block a user