fix: promo cancels not working.

This commit is contained in:
ItzNotABug committed 2024-10-03 13:53:46 +05:30
1 parent 511a4c6227
commit 03174f5129
1 file changed
+11
@@ -25,6 +25,7 @@
import { page } from '$app/stores';
import type { BackupArchive } from '$lib/sdk/backups';
import { trackEvent } from '$lib/actions/analytics';
import { copy } from '$lib/helpers/copy';
export let data: PageData;
const databaseId = $page.params.database;
@@ -201,6 +202,7 @@
</DropListItem>
{/if}
<DropListItem
icon="trash"
on:click={() => {
showDelete = true;
selectedBackup = backup;
@@ -209,6 +211,15 @@
}}>
Delete
</DropListItem>
<DropListItem
icon="duplicate"
on:click={() => {
copy(backup.$id);
showDropdown[index] = false;
}}>
Copy ID
</DropListItem>
</svelte:fragment>
</DropList>
</TableCell>