From 89d3dbdd558c254c8512cb5e0b43c7fe6b092c90 Mon Sep 17 00:00:00 2001 From: Laurin Weger Date: Thu, 27 Jun 2024 17:50:37 +0200 Subject: [PATCH] add pin confirm button --- ng-app/src/lib/Login.svelte | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/ng-app/src/lib/Login.svelte b/ng-app/src/lib/Login.svelte index 6b04f6f..8bdf5ed 100644 --- a/ng-app/src/lib/Login.svelte +++ b/ng-app/src/lib/Login.svelte @@ -24,6 +24,7 @@ XCircle, ArrowLeftCircle, ArrowPath, + LockOpen, } from "svelte-heros-v2"; //import Worker from "../worker.js?worker&inline"; export let wallet; @@ -234,11 +235,7 @@ } async function on_pin_key(val) { - //console.log(val); - pin_code.push(val); - if (pin_code.length == 4) { - await finish(); - } + pin_code = [...pin_code, val]; } async function select_order(val, pos) { @@ -510,8 +507,9 @@ {#each shuffle_pin.slice(0 + row * 3, 3 + row * 3) as num} @@ -522,12 +520,23 @@
-
+