mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: membership and sessions empty state
This commit is contained in:
1 parent
ca08b538c9
commit
7b0679c8ae
2 files changed
+21
-26
No files matched your search
+9
-13
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores';
|
||||
import { base } from '$app/paths';
|
||||
import { Empty, AvatarInitials } from '$lib/components';
|
||||
import { AvatarInitials, EmptySearch } from '$lib/components';
|
||||
import {
|
||||
Table,
|
||||
TableHeader,
|
||||
@@ -67,19 +67,15 @@
|
||||
</TableBody>
|
||||
</Table>
|
||||
{:else}
|
||||
<Empty single>
|
||||
<p>No memberships available</p>
|
||||
<Button
|
||||
external
|
||||
secondary
|
||||
href="https://appwrite.io/docs/server/users?sdk=nodejs-default#usersListMemberships">
|
||||
Documentation
|
||||
</Button>
|
||||
</Empty>
|
||||
<EmptySearch>
|
||||
<div class="u-flex u-flex-vertical u-cross-center u-gap-24">
|
||||
<p class="text u-line-height-1-5">No memberships available</p>
|
||||
<Button external secondary href="https://appwrite.io/docs/client/teams">
|
||||
Documentation
|
||||
</Button>
|
||||
</div>
|
||||
</EmptySearch>
|
||||
{/if}
|
||||
<div class="u-flex u-margin-block-start-32 u-main-space-between">
|
||||
<p class="text">Total results: {data.memberships.total}</p>
|
||||
</div>
|
||||
</Container>
|
||||
|
||||
<DeleteMembership {selectedMembership} bind:showDelete />
|
||||
+12
-13
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { Empty } from '$lib/components';
|
||||
import { EmptySearch } from '$lib/components';
|
||||
import {
|
||||
Table,
|
||||
TableBody,
|
||||
@@ -84,19 +84,18 @@
|
||||
</TableBody>
|
||||
</Table>
|
||||
{:else}
|
||||
<Empty single>
|
||||
<p>No sessions available</p>
|
||||
<Button
|
||||
external
|
||||
secondary
|
||||
href="https://appwrite.io/docs/server/auth?sdk=nodejs-default#usersGetSessions">
|
||||
Documentation
|
||||
</Button>
|
||||
</Empty>
|
||||
<EmptySearch>
|
||||
<div class="u-flex u-flex-vertical u-cross-center u-gap-24">
|
||||
<p class="text u-line-height-1-5">No sessions available</p>
|
||||
<Button
|
||||
external
|
||||
secondary
|
||||
href="https://appwrite.io/docs/server/auth?sdk=nodejs-default#usersGetSessions">
|
||||
Documentation
|
||||
</Button>
|
||||
</div>
|
||||
</EmptySearch>
|
||||
{/if}
|
||||
<div class="u-flex u-margin-block-start-32 u-main-space-between">
|
||||
<p class="text">Total results: {data.sessions.total}</p>
|
||||
</div>
|
||||
</Container>
|
||||
|
||||
<DeleteSessions {selectedSessionId} bind:showDelete />
|
||||
|
||||
Reference in new issue
Block a user