Hiding all tables from data sources when there is no data for them (no placeholder table).
This commit is contained in:
parent
e32869b100
commit
532fefaeff
|
@ -175,15 +175,19 @@
|
||||||
onConfirm={datasources.removeSchemaError}
|
onConfirm={datasources.removeSchemaError}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
<Table
|
{#if plusTables && Object.values(plusTables).length > 0}
|
||||||
on:click={({ detail }) => onClickTable(detail)}
|
<Table
|
||||||
schema={tableSchema}
|
on:click={({ detail }) => onClickTable(detail)}
|
||||||
data={Object.values(plusTables)}
|
schema={tableSchema}
|
||||||
allowEditColumns={false}
|
data={Object.values(plusTables)}
|
||||||
allowEditRows={false}
|
allowEditColumns={false}
|
||||||
allowSelectRows={false}
|
allowEditRows={false}
|
||||||
customRenderers={[{ column: "primary", component: ArrayRenderer }]}
|
allowSelectRows={false}
|
||||||
/>
|
customRenderers={[{ column: "primary", component: ArrayRenderer }]}
|
||||||
|
/>
|
||||||
|
{:else}
|
||||||
|
<Body size="S"><i>No tables found.</i></Body>
|
||||||
|
{/if}
|
||||||
{#if plusTables?.length !== 0}
|
{#if plusTables?.length !== 0}
|
||||||
<Divider size="S" />
|
<Divider size="S" />
|
||||||
<div class="query-header">
|
<div class="query-header">
|
||||||
|
@ -196,14 +200,18 @@
|
||||||
Tell budibase how your tables are related to get even more smart features.
|
Tell budibase how your tables are related to get even more smart features.
|
||||||
</Body>
|
</Body>
|
||||||
{/if}
|
{/if}
|
||||||
<Table
|
{#if relationshipInfo && relationshipInfo.length > 0}
|
||||||
on:click={({ detail }) => openRelationshipModal(detail.from, detail.to)}
|
<Table
|
||||||
schema={relationshipSchema}
|
on:click={({ detail }) => openRelationshipModal(detail.from, detail.to)}
|
||||||
data={relationshipInfo}
|
schema={relationshipSchema}
|
||||||
allowEditColumns={false}
|
data={relationshipInfo}
|
||||||
allowEditRows={false}
|
allowEditColumns={false}
|
||||||
allowSelectRows={false}
|
allowEditRows={false}
|
||||||
/>
|
allowSelectRows={false}
|
||||||
|
/>
|
||||||
|
{:else}
|
||||||
|
<Body size="S"><i>No relationships configured.</i></Body>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.query-header {
|
.query-header {
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if dynamicVariables.length > 0}
|
{#if dynamicVariables && dynamicVariables.length > 0}
|
||||||
<Table
|
<Table
|
||||||
on:click={({ detail }) => onClick(detail)}
|
on:click={({ detail }) => onClick(detail)}
|
||||||
schema={dynamicVariableSchema}
|
schema={dynamicVariableSchema}
|
||||||
|
|
Loading…
Reference in New Issue