diff --git a/static/components/stall-list/stall-list.html b/static/components/stall-list/stall-list.html index 6778614..ba21bc4 100644 --- a/static/components/stall-list/stall-list.html +++ b/static/components/stall-list/stall-list.html @@ -2,7 +2,7 @@
Create Stall diff --git a/static/components/stall-list/stall-list.js b/static/components/stall-list/stall-list.js index 6ba13dd..7ecf91f 100644 --- a/static/components/stall-list/stall-list.js +++ b/static/components/stall-list/stall-list.js @@ -35,7 +35,6 @@ async function stallList(path) { }) }, createStall: async function (stall) { - console.log('### createStall', stall) try { const {data} = await LNbits.api.request( 'POST', @@ -43,6 +42,11 @@ async function stallList(path) { this.adminkey, stall ) + this.stallDialog.show = false + this.$q.notify({ + type: 'positive', + message: 'Stall created!' + }) } catch (error) { LNbits.utils.notifyApiError(error) } @@ -74,6 +78,17 @@ async function stallList(path) { } catch (error) { LNbits.utils.notifyApiError(error) } + }, + openCreateStallDialog: async function () { + await this.getCurrencies() + await this.getZones() + this.stallDialog.data = { + name: '', + wallet: null, + currency: 'sat', + shippingZones: [] + } + this.stallDialog.show = true } }, created: async function () {