Chrome Webstore Link
This commit is contained in:
parent
edf5d2cc62
commit
7348b0ca41
@ -201,13 +201,6 @@ function executePay(db, offer, payCoinInfo, merchantBaseUrl, chosenMint) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
function confirmPay(db, detail, sendResponse) {
|
function confirmPay(db, detail, sendResponse) {
|
||||||
console.log("confirmPay", JSON.stringify(detail));
|
|
||||||
let tx = db.transaction(['transactions'], 'readwrite');
|
|
||||||
let trans = {
|
|
||||||
contractHash: detail.offer.H_contract,
|
|
||||||
contract: detail.offer.contract,
|
|
||||||
sig: detail.offer
|
|
||||||
};
|
|
||||||
let offer = detail.offer;
|
let offer = detail.offer;
|
||||||
getPossibleMintCoins(db, offer.contract.amount, offer.contract.max_fee, offer.contract.mints)
|
getPossibleMintCoins(db, offer.contract.amount, offer.contract.max_fee, offer.contract.mints)
|
||||||
.then((mcs) => {
|
.then((mcs) => {
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
interface AmountJson {
|
interface AmountJson {
|
||||||
value: number;
|
value: number;
|
||||||
fraction: number;
|
fraction: number
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -304,14 +304,6 @@ function executePay(db,
|
|||||||
|
|
||||||
|
|
||||||
function confirmPay(db, detail: ConfirmPayRequest, sendResponse) {
|
function confirmPay(db, detail: ConfirmPayRequest, sendResponse) {
|
||||||
console.log("confirmPay", JSON.stringify(detail));
|
|
||||||
let tx = db.transaction(['transactions'], 'readwrite');
|
|
||||||
let trans = {
|
|
||||||
contractHash: detail.offer.H_contract,
|
|
||||||
contract: detail.offer.contract,
|
|
||||||
sig: detail.offer
|
|
||||||
};
|
|
||||||
|
|
||||||
let offer: Offer = detail.offer;
|
let offer: Offer = detail.offer;
|
||||||
getPossibleMintCoins(db,
|
getPossibleMintCoins(db,
|
||||||
offer.contract.amount,
|
offer.contract.amount,
|
||||||
|
@ -1,21 +1,31 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<link rel="stylesheet" href="popup.css" type="text/css">
|
<link rel="stylesheet" href="popup.css" type="text/css">
|
||||||
<script src="../lib/util.js" type="text/javascript"></script>
|
<script src="../lib/util.js" type="text/javascript"></script>
|
||||||
<script src="transactions.js" type="text/javascript"></script>
|
<script src="transactions.js" type="text/javascript"></script>
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
<script id="balance-template" type="text/x-handlebars-template">
|
||||||
<div id="header" class="nav">
|
{{#each transactions}}
|
||||||
|
bla
|
||||||
|
{{else}}
|
||||||
|
Looks like you didn't make any transactions. Get some
|
||||||
|
coins and <a>donate</a> something.
|
||||||
|
{{/each}}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="header" class="nav">
|
||||||
<a href="balance-overview.html">Wallet</a>
|
<a href="balance-overview.html">Wallet</a>
|
||||||
<a href="transactions.html" class="active">Transactions</a>
|
<a href="transactions.html" class="active">Transactions</a>
|
||||||
<a href="reserves.html">Reserves</a>
|
<a href="reserves.html">Reserves</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<table id="transactions-table" class="hidden">
|
<table id="transactions-table" class="hidden">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -46,7 +56,7 @@
|
|||||||
<p id="no-transactions">
|
<p id="no-transactions">
|
||||||
There are no transactions to show.
|
There are no transactions to show.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user