2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-11-11 13:10:41 +00:00

Addition of Invoices screen

This commit is contained in:
ShahanaFarooqui 2018-11-25 00:07:59 -05:00
parent 2034cb2a55
commit 38bd8c5f56
6 changed files with 12 additions and 7 deletions

View File

@ -609,10 +609,10 @@ THE SOFTWARE.
>>>>>>> Initial commit >>>>>>> Initial commit
@angular/material/card
@angular/material/icon @angular/material/icon
@angular/material/card
@angular/material/divider @angular/material/divider
@angular/material/button @angular/material/button

View File

@ -6,8 +6,8 @@
<base href="/"> <base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="assets/images/favicon.ico"> <link rel="icon" type="image/x-icon" href="assets/images/favicon.ico">
<link rel="stylesheet" href="styles.56c3cb2889f85205c3dc.css"></head> <link rel="stylesheet" href="styles.e8ad9595401679e5b3a6.css"></head>
<body> <body>
<rtl-app></rtl-app> <rtl-app></rtl-app>
<script type="text/javascript" src="runtime.ec2944dd8b20ec099bf3.js"></script><script type="text/javascript" src="polyfills.b2575713cefb95077d85.js"></script><script type="text/javascript" src="main.78ee218d8411ef810887.js"></script></body> <script type="text/javascript" src="runtime.ec2944dd8b20ec099bf3.js"></script><script type="text/javascript" src="polyfills.b2575713cefb95077d85.js"></script><script type="text/javascript" src="main.750ef2a5e3b7af05b623.js"></script></body>
</html> </html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -14,6 +14,13 @@ exports.listInvoices = (req, res, next) => {
error: (undefined === body || search_idx > -1) ? 'Error From Server!' : body.error error: (undefined === body || search_idx > -1) ? 'Error From Server!' : body.error
}); });
} else { } else {
body.invoices.forEach(invoice => {
invoice.creation_date_str = (undefined === invoice.creation_date) ? '' : common.convertTimestampToDate(invoice.creation_date);
invoice.settle_date_str = (undefined === invoice.settle_date) ? '' : common.convertTimestampToDate(invoice.settle_date);
invoice.btc_value = (undefined === invoice.value) ? 0 : common.convertToBTC(invoice.value);
invoice.btc_amt_paid_sat = (undefined === invoice.amt_paid_sat) ? 0 : common.convertToBTC(invoice.amt_paid_sat);
});
console.log('\nInvoices Received: ' + JSON.stringify(body));
res.status(200).json(body); res.status(200).json(body);
} }
}); });

View File

@ -1 +1 @@
{"flgSidenavOpened":false,"flgSidenavPinned":false,"menu":"Vertical","menuType":"Regular","theme":"dark-blue","lndConfigPath":"","satsToBTC":true} {"flgSidenavOpened":true,"flgSidenavPinned":true,"menu":"Vertical","menuType":"Regular","theme":"dark-blue","lndConfigPath":"","satsToBTC":false}