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:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user