mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 01:46:02 +00:00
parent filter icon in designer
This commit is contained in:
@@ -66,6 +66,7 @@
|
|||||||
$: top = table?.top;
|
$: top = table?.top;
|
||||||
$: mainIcon = settings?.getMainTableIcon ? settings?.getMainTableIcon(designerId) : null;
|
$: mainIcon = settings?.getMainTableIcon ? settings?.getMainTableIcon(designerId) : null;
|
||||||
$: specificDb = settings?.tableSpecificDb ? settings?.tableSpecificDb(designerId) : null;
|
$: specificDb = settings?.tableSpecificDb ? settings?.tableSpecificDb(designerId) : null;
|
||||||
|
$: filterParentRows = settings?.hasFilterParentRowsFlag ? settings?.hasFilterParentRowsFlag(designerId) : null;
|
||||||
|
|
||||||
export function isSelected() {
|
export function isSelected() {
|
||||||
return table?.isSelectedTable;
|
return table?.isSelectedTable;
|
||||||
@@ -260,6 +261,10 @@
|
|||||||
{#if specificDb}
|
{#if specificDb}
|
||||||
<FontIcon icon="icon database" title={specificDb.database} />
|
<FontIcon icon="icon database" title={specificDb.database} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
{#if filterParentRows}
|
||||||
|
<FontIcon icon="icon parent-filter" title="Filter parent rows" />
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{#if settings?.showTableCloseButton}
|
{#if settings?.showTableCloseButton}
|
||||||
<div class="close" on:click={() => onRemoveTable(table)}>
|
<div class="close" on:click={() => onRemoveTable(table)}>
|
||||||
|
|||||||
@@ -264,6 +264,7 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
hasFilterParentRowsFlag: designerId => !!config.nodes.find(x => x.designerId == designerId)?.isParentFilter,
|
||||||
}}
|
}}
|
||||||
referenceComponent={QueryDesignerReference}
|
referenceComponent={QueryDesignerReference}
|
||||||
value={createDesignerModel(config, dbInfos)}
|
value={createDesignerModel(config, dbInfos)}
|
||||||
|
|||||||
Reference in New Issue
Block a user