address rabbit's comments.

This commit is contained in:
Darshan
2025-10-26 15:55:04 +05:30
parent ab03ba8c98
commit ba2b50df27
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -12,8 +12,8 @@
type TableColumn,
type TableRootProps
} from '@appwrite.io/pink-svelte';
import Confirm from './confirm.svelte';
import { Button } from '$lib/elements/forms';
import { Confirm } from '$lib/components/index';
import { addNotification } from '$lib/stores/notifications';
let {
@@ -123,7 +123,7 @@
confirmDeletion
error={onDeleteError}
disabled={disableModal}
title="Delete {resource}s"
title="Delete {getPluralResource()}"
bind:open={showConfirmDeletion}
onSubmit={async () => {
disableModal = true;
@@ -295,6 +295,7 @@
title="Delete backup"
bind:open={showDelete}
onSubmit={async () => {
if (!selectedBackup) return;
await deleteBackups([selectedBackup.$id]);
}}>
<Typography.Text>
@@ -109,7 +109,7 @@
try {
await Promise.all(promises);
trackEvent(Submit.MessagingMessageDelete, { total: selected.length });
trackEvent(Submit.MessagingMessageDelete, { total: selectedRows.length });
} catch (error) {
trackError(error, Submit.MessagingMessageDelete);
return error;
@@ -151,7 +151,7 @@
allowSelection={$canWriteMessages}>
{#snippet header(root)}
{#each $columns as { id, title }}
<Table.Cell column={id} {root}>{title}</Table.Cell>
<Table.Header.Cell column={id} {root}>{title}</Table.Header.Cell>
{/each}
{/snippet}