diff --git a/lnbits/extensions/diagonalley/templates/diagonalley/index.html b/lnbits/extensions/diagonalley/templates/diagonalley/index.html index 6d6ea8727..8f33fdcd4 100644 --- a/lnbits/extensions/diagonalley/templates/diagonalley/index.html +++ b/lnbits/extensions/diagonalley/templates/diagonalley/index.html @@ -223,10 +223,10 @@
- Generate keys + Generate keys
- Restore keys + Restore keys
- + Product List a product + Shipping Zone Create a shipping zone - + Stall Create a stall to list products on @@ -665,6 +665,10 @@ var mapOrders = obj => { obj._data = _.clone(obj) return obj } +var mapKeys = obj => { + obj._data = _.clone(obj) + return obj +} new Vue({ el: '#vue', @@ -911,6 +915,26 @@ new Vue({ } }, methods: { + generateKeys: function(){ + var self = this + LNbits.api + .request( + 'GET', + '/diagonalley/api/v1/keys', + self.g.user.wallets[0].adminkey + ) + .then(function (response) { + if (response.data) { + self.keys = response.data.map(mapKeys) + } + }) + .catch(function (error) { + LNbits.utils.notifyApiError(error) + }) + }, + restoreKeys: function(){ + + }, capitalizeFirstLetter: function (string) { return string.charAt(0).toUpperCase() + string.slice(1); },