1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-12 01:09:00 +00:00

refactor: adapt api key list to new sort behavior

This commit is contained in:
Elias Schneider
2025-03-11 20:22:05 +01:00
parent 62915d863a
commit d1b9f3a44e
4 changed files with 22 additions and 45 deletions

View File

@@ -5,12 +5,16 @@
import type { ApiKeyResponse } from '$lib/types/api-key.type';
let {
apiKeyResponse = $bindable(),
onOpenChange
apiKeyResponse = $bindable()
}: {
apiKeyResponse: ApiKeyResponse | null;
onOpenChange: (open: boolean) => void;
} = $props();
function onOpenChange(open: boolean) {
if (!open) {
apiKeyResponse = null;
}
}
</script>
<Dialog.Root open={!!apiKeyResponse} {onOpenChange}>