Fix chrome document scanning
This commit is contained in:
@@ -2,13 +2,17 @@
|
||||
import { AccordionItem, Button } from 'flowbite-svelte';
|
||||
import { db } from '$lib/catalog/db';
|
||||
import { promptConfirmation } from '$lib/util';
|
||||
import { goto } from '$app/navigation';
|
||||
|
||||
function onClear() {
|
||||
promptConfirmation('Are you sure you want to clear your catalog?', () => db.catalog.clear());
|
||||
goto('/');
|
||||
}
|
||||
</script>
|
||||
|
||||
<AccordionItem>
|
||||
<span slot="header">Catalog settings</span>
|
||||
<Button on:click={onClear} outline color="red">Clear catalog</Button>
|
||||
<div class="flex flex-col">
|
||||
<Button on:click={onClear} outline color="red">Clear catalog</Button>
|
||||
</div>
|
||||
</AccordionItem>
|
||||
|
||||
Reference in New Issue
Block a user