File tree Expand file tree Collapse file tree
infrastructure/eid-wallet/src/routes/(app)/scan-qr Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ const {
2525 scannedData,
2626 loading,
2727 redirect,
28+ isFromScan,
2829 signingData,
2930 isSigningRequest,
3031 showSigningSuccess,
@@ -199,6 +200,7 @@ function handleSocialBindingOpenChange(value: boolean) {
199200 platform ={$platform }
200201 hostname ={$hostname }
201202 scannedContent ={$scannedData ?.content }
203+ isFromScan ={$isFromScan }
202204 isSigningRequest ={$isSigningRequest }
203205 authError ={$authError }
204206 authLoading ={$authLoading }
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ interface IAuthDrawerProps {
1010 platform: string | null | undefined ;
1111 hostname: string | null | undefined ;
1212 scannedContent: string | undefined ;
13+ isFromScan: boolean ;
1314 isSigningRequest: boolean ;
1415 authError: string | null | undefined ;
1516 authLoading: boolean | undefined ;
@@ -23,6 +24,7 @@ const {
2324 platform,
2425 hostname,
2526 scannedContent,
27+ isFromScan,
2628 isSigningRequest,
2729 authError,
2830 authLoading,
@@ -77,7 +79,11 @@ $effect(() => {
7779 <h4
7880 class =" text-2xl font-medium text-black-900 text-center leading-tight"
7981 >
80- You have scanned the<br />login QR code
82+ {#if isFromScan }
83+ You have scanned the<br />login QR code
84+ {:else }
85+ You have a pending<br />login request
86+ {/if }
8187 </h4 >
8288 <p
8389 class =" text-lg leading-tight text-black-700 opacity-50 text-center"
You can’t perform that action at this time.
0 commit comments