Handle profile management

This commit is contained in:
ZXY101
2023-09-28 16:26:21 +02:00
parent 2e9a929b92
commit 9179bc750b
6 changed files with 183 additions and 43 deletions

View File

@@ -1,15 +1,6 @@
<script lang="ts">
import Catalog from '$lib/components/Catalog.svelte';
import { createProfile, deleteProfile } from '$lib/settings';
import { Button } from 'flowbite-svelte';
function newProfile() {
createProfile('New');
}
function Delete() {
deleteProfile('New');
}
</script>
<svelte:head>
@@ -17,7 +8,5 @@
</svelte:head>
<div class="p-2 h-[90svh]">
<Button on:click={newProfile}>New profile</Button>
<Button on:click={Delete}>Delete</Button>
<Catalog />
</div>