Display only if there are search results
This commit is contained in:
parent
977f81c412
commit
3829797e3c
|
@ -111,6 +111,8 @@
|
||||||
searchTerm,
|
searchTerm,
|
||||||
onlyOneSource: onlySource,
|
onlyOneSource: onlySource,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const show = dsQueries.length || dsTables.length
|
||||||
return {
|
return {
|
||||||
...datasource,
|
...datasource,
|
||||||
selected,
|
selected,
|
||||||
|
@ -118,6 +120,7 @@
|
||||||
open,
|
open,
|
||||||
queries: dsQueries,
|
queries: dsQueries,
|
||||||
tables: dsTables,
|
tables: dsTables,
|
||||||
|
show,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -218,7 +221,7 @@
|
||||||
on:click={() => selectTable(TableNames.USERS)}
|
on:click={() => selectTable(TableNames.USERS)}
|
||||||
selectedBy={$userSelectedResourceMap[TableNames.USERS]}
|
selectedBy={$userSelectedResourceMap[TableNames.USERS]}
|
||||||
/>
|
/>
|
||||||
{#each enrichedDataSources as datasource}
|
{#each enrichedDataSources.filter(ds => ds.show) as datasource}
|
||||||
<NavItem
|
<NavItem
|
||||||
border
|
border
|
||||||
text={datasource.name}
|
text={datasource.name}
|
||||||
|
|
Loading…
Reference in New Issue