From 0d5c37a49e688503dc2933d379c68541dd432248 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 17 Dec 2015 23:34:39 +0100 Subject: Fix some payment bugs. It still doesn't work, some of the emscripten interface stuff still needs to be finished. --- extension/popup/balance-overview.html | 58 +++++++++++++++++------------------ extension/popup/balance-overview.js | 2 ++ extension/popup/balance-overview.tsx | 4 ++- 3 files changed, 33 insertions(+), 31 deletions(-) (limited to 'extension/popup') diff --git a/extension/popup/balance-overview.html b/extension/popup/balance-overview.html index a3aeae697..bb9726ab2 100644 --- a/extension/popup/balance-overview.html +++ b/extension/popup/balance-overview.html @@ -1,37 +1,35 @@ - - - - - - - - - + + + + + + + - - - + -
-
+ + + - +
+
+ + diff --git a/extension/popup/balance-overview.js b/extension/popup/balance-overview.js index b2c5e0837..946ddc6b3 100644 --- a/extension/popup/balance-overview.js +++ b/extension/popup/balance-overview.js @@ -20,6 +20,7 @@ document.addEventListener('DOMContentLoaded', (e) => { let context = document.getElementById("balance-template").innerHTML; let template = Handlebars.compile(context); document.getElementById("content").innerHTML = template(wallet); + console.log("got wallet", JSON.stringify(wallet)); let el = document.getElementById("link-kudos"); if (el) { el.onclick = (e) => { @@ -37,5 +38,6 @@ document.addEventListener('DOMContentLoaded', (e) => { }); document.getElementById("reset").addEventListener("click", (e) => { chrome.runtime.sendMessage({ type: "reset" }); + window.close(); }); }); diff --git a/extension/popup/balance-overview.tsx b/extension/popup/balance-overview.tsx index 38be50375..bc0e80ee6 100644 --- a/extension/popup/balance-overview.tsx +++ b/extension/popup/balance-overview.tsx @@ -14,7 +14,7 @@ let React = { } return e; } -} +}; document.addEventListener('DOMContentLoaded', (e) => { @@ -23,6 +23,7 @@ document.addEventListener('DOMContentLoaded', (e) => { let context = document.getElementById("balance-template").innerHTML; let template = Handlebars.compile(context); document.getElementById("content").innerHTML = template(wallet); + console.log("got wallet", JSON.stringify(wallet)); let el = document.getElementById("link-kudos"); if (el) { el.onclick = (e) => { @@ -41,5 +42,6 @@ document.addEventListener('DOMContentLoaded', (e) => { }); document.getElementById("reset").addEventListener("click", (e) => { chrome.runtime.sendMessage({type: "reset"}); + window.close(); }); }); -- cgit v1.2.3