From 734a72d7a0060c98bd2d3aae25eb84f17b0b6884 Mon Sep 17 00:00:00 2001 From: benarc Date: Sat, 12 Feb 2022 12:40:12 +0000 Subject: [PATCH] blah --- .../templates/diagonalley/index.html | 32 ++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) 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); },