1
0
Fork 0
mirror of synced 2024-07-13 18:26:06 +12:00

No results

This commit is contained in:
Adria Navarro 2023-11-20 15:21:37 +01:00
parent 93bf76e1fe
commit a8f572c0e8

View file

@ -1,5 +1,6 @@
<script>
import { goto, isActive, params } from "@roxi/routify"
import { Layout } from "@budibase/bbui"
import { BUDIBASE_INTERNAL_DB_ID } from "constants/backend"
import {
database,
@ -69,6 +70,9 @@
toggledDatasources[$tables.selected.sourceId] = true
}
})
$: showNoResults =
searchTerm && !showAppUsersTable && !enrichedDataSources.find(ds => ds.show)
</script>
{#if $database?._id}
@ -125,6 +129,13 @@
{/each}
{/if}
{/each}
{#if showNoResults}
<Layout paddingY="none" paddingX="L">
<div class="no-results">
There aren't any datasource matching '{searchTerm}'
</div>
</Layout>
{/if}
</div>
{/if}