feat(datatables): badge the data table the manager is connected to

The tree lists every data table; only one of them answers the queries.
This commit is contained in:
Diego Imbert
2026-08-31 05:17:23 +02:00
parent 1eb314e8cb
commit 9ebca89e28
@@ -559,6 +559,16 @@
<ChevronDownIcon class={rowChevronClass(dtOpen)} size={14} />
<DatabaseIcon class="shrink-0" size={14} />
<span class="truncate text-ellipsis text-left text-xs">{root.datatable}</span>
{#if root.datatable === currentDatatable}
<!-- Several data tables are listed, but only one is the one being
queried; the tree would otherwise not say which. -->
<span
class="shrink-0 rounded-md px-1.5 py-0.5 text-2xs bg-surface-sunken text-secondary"
title="The data table this manager is connected to"
>
current
</span>
{/if}
{#if roleInfo}
{@const dt = root.datatable}
<DatatableRoleBadge