diff --git a/src/lib/ambient.d.ts b/src/lib/ambient.d.ts
index f837e42..7ea2dd3 100644
--- a/src/lib/ambient.d.ts
+++ b/src/lib/ambient.d.ts
@@ -20,7 +20,7 @@ declare global {
interface AttributeRequest {
t: string
- v: string
+ v?: string
}
interface AttributeType {
diff --git a/src/lib/components/AttributeForm/AttributeCon.svelte b/src/lib/components/AttributeForm/AttributeCon.svelte
index 42d9ebb..cf7ee73 100644
--- a/src/lib/components/AttributeForm/AttributeCon.svelte
+++ b/src/lib/components/AttributeForm/AttributeCon.svelte
@@ -80,7 +80,7 @@
>{$_(`addAttribute${signing ? 'Sign' : ''}`)}
{#each possibleChoices as { ident }}
-
+
{/each}
{/if}
diff --git a/src/lib/components/AttributeForm/AttributeForm.svelte b/src/lib/components/AttributeForm/AttributeForm.svelte
index 596c724..3400ecb 100644
--- a/src/lib/components/AttributeForm/AttributeForm.svelte
+++ b/src/lib/components/AttributeForm/AttributeForm.svelte
@@ -53,10 +53,10 @@
const res: { [key: string]: AttributeCon } = {}
for (const { id, con } of $policy) {
- res[id] = [{ t: EMAIL, v: id.toLowerCase() }]
+ res[id] = signing ? [{ t: EMAIL }] : [{ t: EMAIL, v: id.toLowerCase() }]
for (let { t, v } of con) {
if (t === 'pbdf.gemeente.personalData.dateofbirth') v = v.replace(/\.|\//g, '-')
- res[id].push({ t, v })
+ res[id].push(signing ? { t } : { t, v })
}
}
diff --git a/src/lib/components/AttributeForm/AttributeValue.svelte b/src/lib/components/AttributeForm/AttributeValue.svelte
index 2181397..adbb3d9 100644
--- a/src/lib/components/AttributeForm/AttributeValue.svelte
+++ b/src/lib/components/AttributeForm/AttributeValue.svelte
@@ -1,5 +1,6 @@
-{#if typ?.options}
+{#if signing}
+
+{:else if typ?.options}