Improve messaging

This commit is contained in:
Adria Navarro 2023-05-10 15:23:00 +02:00
parent 46963bca69
commit 1434bb9ac9
1 changed files with 6 additions and 2 deletions

View File

@ -71,7 +71,7 @@
</div>
<div class="controls-right">
<Search bind:value={emailSearch} placeholder="Search" />
<Search bind:value={emailSearch} placeholder="Search email" />
</div>
<Table
schema={userSchema}
@ -83,7 +83,11 @@
on:click={e => $goto(`../users/${e.detail._id}`)}
>
<div class="placeholder" slot="placeholder">
<Heading size="S">This user group doesn't have any users</Heading>
<Heading size="S"
>{emailSearch
? `No users found matching the email "${emailSearch}"`
: "This user group doesn't have any users"}</Heading
>
</div>
</Table>