Fixing issue with custom datasource section appearing when none exist.
This commit is contained in:
parent
a32b3705dc
commit
d063d4fa67
|
@ -28,6 +28,9 @@
|
||||||
let importModal
|
let importModal
|
||||||
|
|
||||||
$: showImportButton = false
|
$: showImportButton = false
|
||||||
|
$: customIntegrations = Object.entries(integrations).filter(
|
||||||
|
entry => entry[1].custom
|
||||||
|
)
|
||||||
|
|
||||||
checkShowImport()
|
checkShowImport()
|
||||||
|
|
||||||
|
@ -163,9 +166,10 @@
|
||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
{#if customIntegrations.length > 0}
|
||||||
<Body size="S">Custom data source</Body>
|
<Body size="S">Custom data source</Body>
|
||||||
<div class="item-list">
|
<div class="item-list">
|
||||||
{#each Object.entries(integrations).filter(entry => entry[1].custom) as [integrationType, schema]}
|
{#each customIntegrations as [integrationType, schema]}
|
||||||
<DatasourceCard
|
<DatasourceCard
|
||||||
on:selected={evt => selectIntegration(evt.detail)}
|
on:selected={evt => selectIntegration(evt.detail)}
|
||||||
{schema}
|
{schema}
|
||||||
|
@ -174,6 +178,7 @@
|
||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
</Layout>
|
</Layout>
|
||||||
</ModalContent>
|
</ModalContent>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
Loading…
Reference in New Issue