diff --git a/lnbits/extensions/diagonalley/templates/diagonalley/index.html b/lnbits/extensions/diagonalley/templates/diagonalley/index.html index c18e165d8..199a84e71 100644 --- a/lnbits/extensions/diagonalley/templates/diagonalley/index.html +++ b/lnbits/extensions/diagonalley/templates/diagonalley/index.html @@ -252,19 +252,6 @@ label="Wallet *" > - -
-
- Generate keys -
-
- Restore keys -
-
+ +
+
+ Generate keys +
+
+ Restore keys +
+
Create Stall @@ -834,6 +836,44 @@ + + + +
+
+
Keys
+
+
+ Export to CSV +
+
+
+ +
+
+
+ {% raw %} + + + {{ keys[type] }} + +

{{ type == 'pubkey' ? 'Public Key' : 'Private Key' }}
Click to copy

+ {% endraw %} +
+
+
+
+
@@ -1370,6 +1410,23 @@ }) } }, + exportKeysCSV: function () { + let colls = [ + { + name: 'privatekey', + align: 'left', + label: 'Private Key', + field: 'privkey' + }, + { + name: 'publickey', + align: 'left', + label: 'Public Key', + field: 'pubkey' + }, + ] + LNbits.utils.exportCSV(colls, [this.keys]) + }, capitalizeFirstLetter: function (string) { return string.charAt(0).toUpperCase() + string.slice(1) },