Skip to content

Commit

Permalink
Finalize initial conversions to ltt components
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellrgn committed Jan 24, 2024
1 parent 457c609 commit acac60e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/lib/AddFileLTT.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import * as jose from 'jose';
import * as pako from 'pako';
import { createEventDispatcher, onMount } from 'svelte';
import FetchSoF from './FetchSoF.svelte';
import ResourceSelector from './ResourceSelector.svelte';
import FetchSoFLTT from './FetchSoFLTT.svelte';
import ResourceSelectorLTT from './ResourceSelectorLTT.svelte';
import { verify } from './shc-decoder.js';
import issuerKeys from './issuer.private.jwks.json';
Expand Down Expand Up @@ -76,7 +76,7 @@
try {
resourceResult = details;
if (resourceResult.resources) {
// Trigger update in ResourceSelector
// Trigger update in ResourceSelectorLTT
resourcesToReview = resourceResult.resources;
}
} catch (e) {
Expand Down Expand Up @@ -191,17 +191,17 @@
}
</script>

<FetchSoF
<FetchSoFLTT
on:sofAuthEvent={ async ({ detail }) => { preAuthRedirectHandler(detail) } }
on:updateResources={ async ({ detail }) => { handleNewResources(detail) } }
on:shc-retrieved={ async ({ detail }) => { handleSHCResultUpdate(detail) } }>
</FetchSoF>
</FetchSoFLTT>

{#if resourcesToReview.length > 0}
<span class="text-danger">{fetchError}</span>
{#if resourcesToReview.length > 0}
<ResourceSelector bind:newResources={resourcesToReview}
<ResourceSelectorLTT bind:newResources={resourcesToReview}
on:ips-retrieved={ async ({ detail }) => { uploadRetrievedIPS(detail) } }>
</ResourceSelector>
</ResourceSelectorLTT>
{/if}
{/if}

0 comments on commit acac60e

Please sign in to comment.