fix: shipping zones label
This commit is contained in:
parent
f95db75495
commit
6d8488d2c3
1 changed files with 6 additions and 2 deletions
|
|
@ -35,16 +35,20 @@ async function stallDetails(path) {
|
||||||
this.inkey
|
this.inkey
|
||||||
)
|
)
|
||||||
this.stall = data
|
this.stall = data
|
||||||
|
this.stall.shipping_zones.forEach(
|
||||||
|
z =>
|
||||||
|
(z.label = z.name
|
||||||
|
? `${z.name} (${z.countries.join(', ')})`
|
||||||
|
: z.countries.join(', '))
|
||||||
|
)
|
||||||
console.log('### this.stall', this.stall)
|
console.log('### this.stall', this.stall)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
LNbits.utils.notifyApiError(error)
|
LNbits.utils.notifyApiError(error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
created: async function () {
|
created: async function () {
|
||||||
await this.getStall()
|
await this.getStall()
|
||||||
console.log('### this.zoneOptions', this.zoneOptions)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue