mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
feat: add delete all btn (no logic yet)
This commit is contained in:
1 parent
1228faef43
commit
23a2458fdd
2 files changed
+14
No files matched your search
@@ -18,6 +18,7 @@
|
||||
const getAvatar = (name: string) => sdkForProject.avatars.getInitials(name, 30, 30).toString();
|
||||
|
||||
let offset = 0;
|
||||
let showDeleteAll = false;
|
||||
|
||||
const limit = 25;
|
||||
|
||||
@@ -29,6 +30,12 @@
|
||||
<div aria-busy="true" />
|
||||
{:then response}
|
||||
{#if response.total}
|
||||
<div class="u-flex u-main-space-end common-section">
|
||||
<Button secondary on:click={() => (showDeleteAll = true)}>
|
||||
<span class="icon-plus" aria-hidden="true" />
|
||||
<span class="text">Delete All</span>
|
||||
</Button>
|
||||
</div>
|
||||
<Card>
|
||||
<Table>
|
||||
<TableHeader>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
import { sdkForProject } from '$lib/stores/sdk';
|
||||
|
||||
let offset = 0;
|
||||
let showDeleteAll = false;
|
||||
|
||||
const limit = 25;
|
||||
const deleteSession = async (id: string) => {
|
||||
@@ -40,6 +41,12 @@
|
||||
<div aria-busy="true" />
|
||||
{:then response}
|
||||
{#if response.total}
|
||||
<div class="u-flex u-main-space-end common-section">
|
||||
<Button secondary on:click={() => (showDeleteAll = true)}>
|
||||
<span class="icon-plus" aria-hidden="true" />
|
||||
<span class="text">Delete All</span>
|
||||
</Button>
|
||||
</div>
|
||||
<Card>
|
||||
<List>
|
||||
{#each response.sessions as session}
|
||||
|
||||
Reference in new issue
Block a user