feat: basic orders UI
This commit is contained in:
parent
4817e594c9
commit
aed65dd65e
4 changed files with 82 additions and 4 deletions
|
|
@ -102,6 +102,15 @@ const market = async () => {
|
|||
}
|
||||
},
|
||||
computed: {
|
||||
allOrders() {
|
||||
const prefix = 'nostrmarket.orders.'
|
||||
const orderKeys = this.$q.localStorage.getAllKeys().filter(k => k.startsWith(prefix))
|
||||
|
||||
return orderKeys.map((key) => ({
|
||||
pubkey: key.substring(prefix.length),
|
||||
orders: this.$q.localStorage.getItem(key)
|
||||
}), {})
|
||||
},
|
||||
filterProducts() {
|
||||
let products = this.products
|
||||
console.log('### this.products', this.products)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue