Collapse queries with their datasource
This commit is contained in:
parent
3ba43a1b35
commit
0b93b201a5
|
@ -63,20 +63,19 @@
|
||||||
|
|
||||||
{#if openDataSources.includes(datasource._id)}
|
{#if openDataSources.includes(datasource._id)}
|
||||||
<TableNavigator sourceId={datasource._id} />
|
<TableNavigator sourceId={datasource._id} />
|
||||||
|
{#each $queries.list.filter(query => query.datasourceId === datasource._id) as query}
|
||||||
|
<NavItem
|
||||||
|
indentLevel={1}
|
||||||
|
icon="SQLQuery"
|
||||||
|
text={query.name}
|
||||||
|
opened={$queries.selected === query._id}
|
||||||
|
selected={$queries.selected === query._id}
|
||||||
|
on:click={() => onClickQuery(query)}
|
||||||
|
>
|
||||||
|
<EditQueryPopover {query} />
|
||||||
|
</NavItem>
|
||||||
|
{/each}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#each $queries.list.filter(query => query.datasourceId === datasource._id) as query}
|
|
||||||
<NavItem
|
|
||||||
indentLevel={1}
|
|
||||||
icon="SQLQuery"
|
|
||||||
text={query.name}
|
|
||||||
opened={$queries.selected === query._id}
|
|
||||||
selected={$queries.selected === query._id}
|
|
||||||
on:click={() => onClickQuery(query)}
|
|
||||||
>
|
|
||||||
<EditQueryPopover {query} />
|
|
||||||
</NavItem>
|
|
||||||
{/each}
|
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in New Issue