diff --git a/static/components/shipping-zones/shipping-zones.html b/static/components/shipping-zones/shipping-zones.html index e013302..6984c6c 100644 --- a/static/components/shipping-zones/shipping-zones.html +++ b/static/components/shipping-zones/shipping-zones.html @@ -47,8 +47,8 @@ v-model="zoneDialog.data.countries" > + z.currency === this.stallDialog.data.currency + ) + } + }, methods: { sendStallFormData: async function () { - console.log('### sendStallFormData', this.stallDialog.data) - await this.createStall({ name: this.stallDialog.data.name, wallet: this.stallDialog.data.wallet, currency: this.stallDialog.data.currency, shipping_zones: this.stallDialog.data.shippingZones, - config: {} + config: { + description: this.stallDialog.data.description + } }) }, createStall: async function (stall) { @@ -75,7 +83,7 @@ async function stallList(path) { this.zoneOptions = data.map(z => ({ ...z, label: z.name - ? `${z.name} (${z.countries.join(', ')}})` + ? `${z.name} (${z.countries.join(', ')})` : z.countries.join(', ') })) console.log('### this.zoneOptions', this.zoneOptions) @@ -88,6 +96,7 @@ async function stallList(path) { await this.getZones() this.stallDialog.data = { name: '', + description: '', wallet: null, currency: 'sat', shippingZones: []