feat: add delete all btn (no logic yet)

This commit is contained in:
Arman committed 2022-06-06 17:59:28 +02:00
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}