aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-09-25 14:06:54 -0700
committerAdam Soltys <[email protected]>2024-09-25 14:06:54 -0700
commit02419e460b60ae1ae8f3950148b59a3854426998 (patch)
tree12b39ce472e8f217a3590fbc3deb02eb1cea2f4c
parent9a2b381066e0bc617d807fc93357eaac9813fca8 (diff)
downloadcoinos-ui-02419e460b60ae1ae8f3950148b59a3854426998.tar.gz
coinos-ui-02419e460b60ae1ae8f3950148b59a3854426998.zip
fix balance button
-rw-r--r--src/components/Balance.svelte2
-rw-r--r--src/locales/en.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Balance.svelte b/src/components/Balance.svelte
index 3e913615..fb02cf60 100644
--- a/src/components/Balance.svelte
+++ b/src/components/Balance.svelte
@@ -17,7 +17,7 @@
{#if user.haspin && !$pin}
<button
class="flex gap-2 text-xl rounded-2xl border py-5 px-6 hover:opacity-80 bg-black text-white font-bold"
- on:click={() => (show = true)}
+ on:click|preventDefault={() => (show = true)}
>
<Icon icon="eye" style="w-8 invert my-auto" />
<div class="my-auto">{$t("user.showBalance")}</div></button
diff --git a/src/locales/en.json b/src/locales/en.json
index fe67a2b7..d44f3c53 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -17,7 +17,7 @@
"accountSetup": "Account setup",
"enterSeed": "Enter a seed phrase",
"passwordMismatch": "Passwords don't match",
- "generateSeed": "Generate a new seed phrase in your browser",
+ "generateSeed": "Generate a new seed phrase",
"accountPassword": "Account password",
"importSeed": "Enter an existing seed phrase",
"passwordWarning": "If you lose this password you won't be able to withdraw funds from the account or restore your seed phrase. We can't recover it for you.",
ys <[email protected]> 2026-02-11 17:51:24 -0800 linting' href='/coinos-ui.git/commit/src/service-worker.js?id=13466248004327e9a026cb89f94926f9b060d1c1'>13466248 ^
002cd913 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33


                                            
                                          








                                                 


                                                       
                             
 
                                                 
 
                  



                                                                                          
         




                                       
    
   
self.addEventListener("install", () => {});
self.addEventListener("activate", () => {});
self.addEventListener("fetch", () => {});
self.addEventListener("push", (event) => {
  const { title, body, url } = event.data.json();
  const icon = "/images/icon.png";
  const badge = "/images/badge.png";
  self.registration.showNotification(title, {
    body,
    icon,
    badge,
    data: { url },
  });
});

self.addEventListener("notificationclick", (event) => {
  event.notification.close();

  const url = event.notification.data.url || "/";

  event.waitUntil(
    clients.matchAll({ type: "window", includeUncontrolled: true }).then((clientList) => {
      for (const client of clientList) {
        if (client.url === url && "focus" in client) {
          return client.focus();
        }
      }
      if (clients.openWindow) {
        return clients.openWindow(url);
      }
    }),
  );
});