Skip to content

Commit

Permalink
fix: qr code page
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebus-84 committed Feb 19, 2025
1 parent 8999152 commit 11874e3
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/routes/[[lang]]/(protected)/[id]/verify/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@
)}
shape="square"
/>
<d-heading class="text-left line-clamp-2" size="xs">{verificationFlow.name}</d-heading>
<d-heading class="line-clamp-2 text-left" size="xs">{verificationFlow.name}</d-heading>
</d-horizontal-stack>
<!-- <d-text size="l">{verificationFlow.expand.relying_party.name} </d-text> -->
</d-vertical-stack>
<!-- for web test no tok provided-->
{#if Capacitor.getPlatform() == 'web'}
{#await registerQr('fcm registration token is not available in web') then qr}
<d-qr-code
class="mt-4"
class="mt-4"
{qr}
verifier-label={m.Verifier()}
relying-party={verificationFlow.expand.relying_party.name}
Expand All @@ -140,12 +140,15 @@
text={'Please allow the app to receive push notifications in order to proceed.'}
/>
{:else if qr}
<d-qr-code
{qr}
generation-date="{generationDate.day()}/{generationDate.month()}/{generationDate.year()}"
generation-hour="{generationDate.hour()}:{generationDate.minute()}:{generationDate.second()}"
session-id={id}
/>
<d-qr-code
class="mt-4"
verifier-label={m.Verifier()}
relying-party={verificationFlow.expand.relying_party.name}
{qr}
generation-date="{generationDate.day()}/{generationDate.month()}/{generationDate.year()}"
generation-hour="{generationDate.hour()}:{generationDate.minute()}:{generationDate.second()}"
session-id={id}
/>

<d-button
color="accent"
Expand Down

0 comments on commit 11874e3

Please sign in to comment.