No results

This commit is contained in:
Adria Navarro 2023-11-20 15:21:37 +01:00
parent 93bf76e1fe
commit a8f572c0e8
1 changed files with 11 additions and 0 deletions

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}