From 80b73e7aba1b1dff80693265dadd96946b27375e Mon Sep 17 00:00:00 2001 From: benarc Date: Sun, 6 Feb 2022 22:40:51 +0000 Subject: [PATCH] small fix --- .../templates/diagonalley/index.html | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/lnbits/extensions/diagonalley/templates/diagonalley/index.html b/lnbits/extensions/diagonalley/templates/diagonalley/index.html index 7b8f8e6a..6d6ea872 100644 --- a/lnbits/extensions/diagonalley/templates/diagonalley/index.html +++ b/lnbits/extensions/diagonalley/templates/diagonalley/index.html @@ -244,7 +244,7 @@ label="Private Key" > @@ -270,7 +270,7 @@ filled dense v-model.trim="stallDialog.data.nostrShops" - label="Stall public keys (seperate by comma)" + label="Nostr shop public keys (seperate by comma)" >
- + Product List a produc + Product List a product + Product List a product + Shipping Zone Create a shipping zone - + Stall Create a stall to list products on @@ -675,6 +675,7 @@ new Vue({ orders: [], stalls: [], zones: [], + zoneOptions: [], customerKeys: [], customerKey: '', customerMessages: {}, @@ -949,10 +950,19 @@ new Vue({ LNbits.utils.notifyApiError(error) }) }, + openStallDialog: function () { + console.log(this.zones[0]['id']) + for(let i = 0; i < this.zones.length; i ++){ + this.zoneOptions.push(this.zones[i]['id']) + } + this.stallDialog.show = true + }, openStallUpdateDialog: function (linkId) { var self = this var link = _.findWhere(self.stalls, {id: linkId}) - + for(let i = 0; i < this.zones.length; i ++){ + this.zoneOptions.push(this.stalls[i][0]) + } this.stallDialog.data = _.clone(link._data) this.stallDialog.show = true }, @@ -1210,6 +1220,7 @@ new Vue({ if (response.data) { console.log(response) self.zones = response.data.map(mapZone) + } }) .catch(function (error) {